From 1534a02953d084b84a8e19904aca14dd06e28a4c Mon Sep 17 00:00:00 2001 From: qinluhe Date: Wed, 3 Jul 2024 16:42:46 +0800 Subject: [PATCH] fix: title longer --- .../blocks/bulleted-list/BulletedListIcon.tsx | 17 +++++------------ .../publish/header/BreadcrumbItem.tsx | 5 ++++- .../components/view-meta/ViewMetaPreview.tsx | 6 ++++-- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/frontend/appflowy_web_app/src/components/editor/components/blocks/bulleted-list/BulletedListIcon.tsx b/frontend/appflowy_web_app/src/components/editor/components/blocks/bulleted-list/BulletedListIcon.tsx index 252452495e..3fee74bfad 100644 --- a/frontend/appflowy_web_app/src/components/editor/components/blocks/bulleted-list/BulletedListIcon.tsx +++ b/frontend/appflowy_web_app/src/components/editor/components/blocks/bulleted-list/BulletedListIcon.tsx @@ -31,31 +31,24 @@ export function BulletedListIcon({ block, className }: { block: BulletedListNode const Icon = useMemo(() => { switch (letter) { case Letter.Disc: - return 'disc'; + return DiscIcon; case Letter.Circle: - return 'circle'; + return CircleIcon; case Letter.Square: - return 'square'; + return SquareIcon; } }, [letter]); return ( - // { - // e.preventDefault(); - // }} - // contentEditable={false} - // className={`${className} bulleted-icon ${dataLetter} flex min-w-[24px] justify-center pr-1 font-medium`} - // /> { e.preventDefault(); }} - className={`${className} cursor-pointer pr-1 text-xl hover:text-fill-default`} + className={`${className} pr-1 text-xl`} > - {Icon === 'disc' ? : Icon === 'circle' ? : } + ); } diff --git a/frontend/appflowy_web_app/src/components/publish/header/BreadcrumbItem.tsx b/frontend/appflowy_web_app/src/components/publish/header/BreadcrumbItem.tsx index 880656e194..dd6f740b5b 100644 --- a/frontend/appflowy_web_app/src/components/publish/header/BreadcrumbItem.tsx +++ b/frontend/appflowy_web_app/src/components/publish/header/BreadcrumbItem.tsx @@ -63,7 +63,10 @@ function BreadcrumbItem({ crumb, disableClick = false }: { crumb: Crumb; disable )} {name || t('menuAppHeader.defaultNewPageName')} diff --git a/frontend/appflowy_web_app/src/components/view-meta/ViewMetaPreview.tsx b/frontend/appflowy_web_app/src/components/view-meta/ViewMetaPreview.tsx index d0d6cfb877..6c555dd641 100644 --- a/frontend/appflowy_web_app/src/components/view-meta/ViewMetaPreview.tsx +++ b/frontend/appflowy_web_app/src/components/view-meta/ViewMetaPreview.tsx @@ -58,12 +58,14 @@ export function ViewMetaPreview({ icon, cover, name }: ViewMetaProps) {
{icon?.value ?
{icon?.value}
: null} - {name || {t('menuAppHeader.defaultNewPageName')}} +
+ {name || {t('menuAppHeader.defaultNewPageName')}} +