From 16576be111436cc1efa172cbbe4f28a2e7df179d Mon Sep 17 00:00:00 2001 From: Johnny Date: Sun, 1 Mar 2026 21:22:11 +0800 Subject: [PATCH] chore: polish MemoDetailSidebar for consistent structure and styles --- .../MemoDetailSidebar/MemoDetailSidebar.tsx | 132 +++++++++--------- .../MemoDetailSidebarDrawer.tsx | 2 +- web/src/pages/MemoDetail.tsx | 66 +++++---- 3 files changed, 101 insertions(+), 99 deletions(-) diff --git a/web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx b/web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx index 76b6ea1e3..3e72f77d3 100644 --- a/web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx +++ b/web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx @@ -13,6 +13,10 @@ interface Props { parentPage?: string; } +const SectionLabel = ({ children }: { children: React.ReactNode }) => ( +

{children}

+); + const MemoDetailSidebar = ({ memo, className, parentPage }: Props) => { const t = useTranslate(); const property = create(Memo_PropertySchema, memo.property || {}); @@ -20,76 +24,76 @@ const MemoDetailSidebar = ({ memo, className, parentPage }: Props) => { const hasReferenceRelations = memo.relations.some((r) => r.type === MemoRelation_Type.REFERENCE); return ( -