mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-30 13:20:45 +08:00
fix: add some tips for livedemo
This commit is contained in:
@@ -88,6 +88,11 @@ export function Page(props: PageProps) {
|
|||||||
{activeTab === TabMap.get(TAB_TITLE.TOC).value && (
|
{activeTab === TabMap.get(TAB_TITLE.TOC).value && (
|
||||||
<TOC />
|
<TOC />
|
||||||
)}
|
)}
|
||||||
|
{activeTab === TabMap.get(TAB_TITLE.GALLERY).value && (
|
||||||
|
<StyledTextForGallery>
|
||||||
|
Gallery coming soon...
|
||||||
|
</StyledTextForGallery>
|
||||||
|
)}
|
||||||
</WorkspaceSidebarContent>
|
</WorkspaceSidebarContent>
|
||||||
</WorkspaceSidebar>
|
</WorkspaceSidebar>
|
||||||
</LigoLeftContainer>
|
</LigoLeftContainer>
|
||||||
@@ -202,3 +207,12 @@ const WorkspaceSidebarContent = styled('div')({
|
|||||||
overflow: 'hidden auto',
|
overflow: 'hidden auto',
|
||||||
marginTop: '18px',
|
marginTop: '18px',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const StyledTextForGallery = styled('div')(({ theme }) => {
|
||||||
|
return {
|
||||||
|
display: 'flex',
|
||||||
|
justifyContent: 'center',
|
||||||
|
color: theme.affine.palette.menu,
|
||||||
|
marginTop: theme.affine.spacing.lgSpacing,
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
SideBarViewCloseIcon,
|
SideBarViewCloseIcon,
|
||||||
SideBarViewIcon,
|
SideBarViewIcon,
|
||||||
} from '@toeverything/components/icons';
|
} 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 { useTranslation } from '@toeverything/datasource/i18n';
|
||||||
import {
|
import {
|
||||||
useCurrentEditors,
|
useCurrentEditors,
|
||||||
@@ -51,16 +51,28 @@ export const LayoutHeader = () => {
|
|||||||
</FlexContainer>
|
</FlexContainer>
|
||||||
<FlexContainer>
|
<FlexContainer>
|
||||||
<StyledHelper>
|
<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' }}>
|
<div style={{ margin: '0px 12px' }}>
|
||||||
<IconButton
|
<Tooltip
|
||||||
size="large"
|
placement="bottom-end"
|
||||||
hoverColor={'transparent'}
|
content="Search function coming soon"
|
||||||
onClick={handleSearch}
|
|
||||||
disabled={true}
|
|
||||||
>
|
>
|
||||||
<SearchIcon />
|
<IconButton
|
||||||
</IconButton>
|
size="large"
|
||||||
|
hoverColor={'transparent'}
|
||||||
|
onClick={handleSearch}
|
||||||
|
disabled={true}
|
||||||
|
>
|
||||||
|
<SearchIcon />
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<IconButton onClick={toggleInfoSidebar} size="large">
|
<IconButton onClick={toggleInfoSidebar} size="large">
|
||||||
|
|||||||
@@ -7,7 +7,20 @@ type CommentsProps = {
|
|||||||
resolveComment: (blockId: string, commentId: string) => void;
|
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,
|
activeCommentId,
|
||||||
resolveComment,
|
resolveComment,
|
||||||
}: CommentsProps) => {
|
}: CommentsProps) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user