fix: update codes

This commit is contained in:
qinluhe 2024-06-27 14:26:36 +08:00
parent 3b76ee9078
commit 0ffc4cb4eb
3 changed files with 5 additions and 5 deletions

View File

@ -62,7 +62,7 @@ function MentionPage({ pageId }: { pageId: string }) {
<span className={'mention-unpublished font-semibold text-text-caption'}>No Access</span>
) : (
<>
<span className={'mention-icon'}>{icon?.value || defaultIcon}</span>
<span className={'mention-icon icon'}>{icon?.value || defaultIcon}</span>
<span className={'mention-content'}>{meta?.name || t('menuAppHeader.defaultNewPageName')}</span>
</>

View File

@ -9,7 +9,7 @@ import MoreActions from './MoreActions';
export function PublishViewHeader() {
const viewMeta = usePublishContext()?.viewMeta;
const crumbs = useMemo(() => {
const ancestors = viewMeta?.ancestor_views || [];
const ancestors = viewMeta?.ancestor_views.slice(1) || [];
return ancestors.map((ancestor) => {
let icon;
@ -33,7 +33,7 @@ export function PublishViewHeader() {
return (
<div className={'appflowy-top-bar flex h-[64px] px-5'}>
<div className={'flex w-full items-center justify-between gap-2 overflow-hidden'}>
<div className={'flex-1'}>
<div className={'flex-1 overflow-hidden'}>
<Breadcrumb crumbs={crumbs} />
</div>

View File

@ -52,12 +52,12 @@ body {
}
.icon {
font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', sans-serif;
font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Twemoji Mozilla', sans-serif;
}
.view-icon {
@apply flex w-fit leading-[1.5em] cursor-pointer rounded-lg py-2 text-[1.5em];
font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', sans-serif;
font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Twemoji Mozilla', sans-serif;
line-height: 1em;
white-space: nowrap;
}