mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: update codes
This commit is contained in:
parent
3b76ee9078
commit
0ffc4cb4eb
@ -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>
|
||||
</>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user