From b9bc2d167e0582d50602dfa1bbdba2054f0b3044 Mon Sep 17 00:00:00 2001 From: alt0 Date: Wed, 28 Sep 2022 15:48:29 +0800 Subject: [PATCH] fix: add some tips for livedemo --- .../src/pages/workspace/docs/Page.tsx | 14 +++++++++ .../layout/src/header/LayoutHeader.tsx | 30 +++++++++++++------ .../settings-sidebar/Comments/Comments.tsx | 15 +++++++++- 3 files changed, 49 insertions(+), 10 deletions(-) diff --git a/apps/ligo-virgo/src/pages/workspace/docs/Page.tsx b/apps/ligo-virgo/src/pages/workspace/docs/Page.tsx index 2a4c4f1aa5..6dd977a8af 100644 --- a/apps/ligo-virgo/src/pages/workspace/docs/Page.tsx +++ b/apps/ligo-virgo/src/pages/workspace/docs/Page.tsx @@ -88,6 +88,11 @@ export function Page(props: PageProps) { {activeTab === TabMap.get(TAB_TITLE.TOC).value && ( )} + {activeTab === TabMap.get(TAB_TITLE.GALLERY).value && ( + + Gallery coming soon... + + )} @@ -202,3 +207,12 @@ const WorkspaceSidebarContent = styled('div')({ overflow: 'hidden auto', marginTop: '18px', }); + +const StyledTextForGallery = styled('div')(({ theme }) => { + return { + display: 'flex', + justifyContent: 'center', + color: theme.affine.palette.menu, + marginTop: theme.affine.spacing.lgSpacing, + }; +}); diff --git a/libs/components/layout/src/header/LayoutHeader.tsx b/libs/components/layout/src/header/LayoutHeader.tsx index 03b427c8fb..427171461a 100644 --- a/libs/components/layout/src/header/LayoutHeader.tsx +++ b/libs/components/layout/src/header/LayoutHeader.tsx @@ -4,7 +4,7 @@ import { SideBarViewCloseIcon, SideBarViewIcon, } from '@toeverything/components/icons'; -import { IconButton, styled } from '@toeverything/components/ui'; +import { IconButton, styled, Tooltip } from '@toeverything/components/ui'; import { useTranslation } from '@toeverything/datasource/i18n'; import { useCurrentEditors, @@ -51,16 +51,28 @@ export const LayoutHeader = () => { - {t('Share')} + + + {t('Share')} + +
- - - + + + +
diff --git a/libs/components/layout/src/settings-sidebar/Comments/Comments.tsx b/libs/components/layout/src/settings-sidebar/Comments/Comments.tsx index e2aeb949eb..db80b0b6bc 100644 --- a/libs/components/layout/src/settings-sidebar/Comments/Comments.tsx +++ b/libs/components/layout/src/settings-sidebar/Comments/Comments.tsx @@ -7,7 +7,20 @@ type CommentsProps = { resolveComment: (blockId: string, commentId: string) => void; }; -export const Comments = ({ +export const Comments = (props: CommentsProps) => { + return Comment coming soon...; +}; + +const StyledText = styled('div')(({ theme }) => { + return { + display: 'flex', + justifyContent: 'center', + color: theme.affine.palette.menu, + marginTop: theme.affine.spacing.lgSpacing, + }; +}); + +export const BakComments = ({ activeCommentId, resolveComment, }: CommentsProps) => {