feat(edit): 编辑页样式修改

This commit is contained in:
R524809
2026-09-18 13:38:00 +08:00
parent 5684cbd517
commit df3fb0c754
2 changed files with 12 additions and 1 deletions
@@ -12,6 +12,13 @@
padding-bottom: 92px; padding-bottom: 92px;
} }
/* 编辑器快照加载前占满内容可视区,避免加载图标受页面留白影响而偏移。 */
.product-editor-loading {
display: grid;
min-height: calc(100vh - 90px);
place-items: center;
}
/* 页头 */ /* 页头 */
.editor-header { .editor-header {
margin: -4px 0 20px; margin: -4px 0 20px;
@@ -870,7 +870,11 @@ const ProductEditPage = () => {
if (!currentPlatform) return <Alert type="warning" message="正在读取平台上下文" />; if (!currentPlatform) return <Alert type="warning" message="正在读取平台上下文" />;
if (loading && !snapshot) if (loading && !snapshot)
return <Spin size="large" style={{ display: 'block', margin: '72px auto' }} />; return (
<div className="product-editor-loading">
<Spin size="large" />
</div>
);
if (!snapshot) if (!snapshot)
return ( return (
<Alert <Alert