From 52ee2a98bb04c8a8dac41604debde65cbb4339f4 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Mon, 30 May 2022 12:15:32 +0800 Subject: [PATCH] client: fix style --- .../template/editor/index.module.scss | 38 ------------------- .../src/components/template/editor/index.tsx | 18 ++------- .../src/components/template/reader/index.tsx | 2 - .../src/layouts/router-header/index.tsx | 2 +- 4 files changed, 4 insertions(+), 56 deletions(-) diff --git a/packages/client/src/components/template/editor/index.module.scss b/packages/client/src/components/template/editor/index.module.scss index 983ce25..f8eee49 100644 --- a/packages/client/src/components/template/editor/index.module.scss +++ b/packages/client/src/components/template/editor/index.module.scss @@ -24,41 +24,3 @@ flex: 1; } } - -.editorWrap { - display: flex; - flex-direction: column; - height: 100%; - overflow: hidden; - - > div { - height: 100%; - - > div:first-of-type > main { - padding: 24px 24px 96px; - } - } - - .isStandardWidth { - > div { - > main { - > div:first-of-type { - width: 96%; - max-width: 750px; - margin: 0 auto; - } - } - } - } - - .isFullWidth { - width: 100%; - margin: 0 auto; - - > div { - > header { - justify-content: flex-start; - } - } - } -} diff --git a/packages/client/src/components/template/editor/index.tsx b/packages/client/src/components/template/editor/index.tsx index e70e7d8..04285f4 100644 --- a/packages/client/src/components/template/editor/index.tsx +++ b/packages/client/src/components/template/editor/index.tsx @@ -1,6 +1,5 @@ import { IconChevronLeft } from '@douyinfe/semi-icons'; import { Button, Nav, Popconfirm, Space, Switch, Tooltip, Typography } from '@douyinfe/semi-ui'; -import cls from 'classnames'; import { DocumentStyle } from 'components/document/style'; import { Seo } from 'components/seo'; import { Theme } from 'components/theme'; @@ -84,20 +83,9 @@ export const TemplateEditor: React.FC = ({ templateId }) => { >
-
-
- {mounted && data && ( - - )} -
-
+ {mounted && data && ( + + )}
diff --git a/packages/client/src/components/template/reader/index.tsx b/packages/client/src/components/template/reader/index.tsx index f521c30..f33d79c 100644 --- a/packages/client/src/components/template/reader/index.tsx +++ b/packages/client/src/components/template/reader/index.tsx @@ -1,6 +1,5 @@ import { Spin } from '@douyinfe/semi-ui'; import { DataRender } from 'components/data-render'; -import { ImageViewer } from 'components/image-viewer'; import { Seo } from 'components/seo'; import { useTemplate } from 'data/template'; import React from 'react'; @@ -27,7 +26,6 @@ export const TemplateReader: React.FC = ({ templateId }) => {
-
); }} diff --git a/packages/client/src/layouts/router-header/index.tsx b/packages/client/src/layouts/router-header/index.tsx index d9222d7..d201106 100644 --- a/packages/client/src/layouts/router-header/index.tsx +++ b/packages/client/src/layouts/router-header/index.tsx @@ -130,7 +130,7 @@ export const RouterHeader: React.FC = () => { mode="horizontal" style={{ overflow: 'auto' }} header={ - + {width >= 890 && }