Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: add some tips for livedemo

alt0b9bc2d167e05
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 && (
<TOC />
)}
+ {activeTab === TabMap.get(TAB_TITLE.GALLERY).value && (
+ <StyledTextForGallery>
+ Gallery coming soon...
+ </StyledTextForGallery>
+ )}
</WorkspaceSidebarContent>
</WorkspaceSidebar>
</LigoLeftContainer>
@@ -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 = () => {
</FlexContainer>
<FlexContainer>
<StyledHelper>
- <StyledShare disabled={true}>{t('Share')}</StyledShare>
+ <Tooltip
+ placement="bottom-end"
+ content="Share function coming soon"
+ >
+ <StyledShare disabled={true}>
+ {t('Share')}
+ </StyledShare>
+ </Tooltip>
<div style={{ margin: '0px 12px' }}>
- <IconButton
- size="large"
- hoverColor={'transparent'}
- onClick={handleSearch}
- disabled={true}
+ <Tooltip
+ placement="bottom-end"
+ content="Search function coming soon"
>
- <SearchIcon />
- </IconButton>
+ <IconButton
+ size="large"
+ hoverColor={'transparent'}
+ onClick={handleSearch}
+ disabled={true}
+ >
+ <SearchIcon />
+ </IconButton>
+ </Tooltip>
</div>
<IconButton onClick={toggleInfoSidebar} size="large">
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 <StyledText>Comment coming soon...</StyledText>;
+};
+
+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) => {