diff --git a/fe-admin/src/components/Layout.tsx b/fe-admin/src/components/Layout.tsx index 6830e47..6f7c2d8 100644 --- a/fe-admin/src/components/Layout.tsx +++ b/fe-admin/src/components/Layout.tsx @@ -135,21 +135,21 @@ function MenuGroup({ node, depth }: { node: MenuNode; depth: number }) { {open && (
- - {/* [Plan AA S24 t1] Revert truncate Plan U S23 t11 — mirror fe-user. */} - {node.label} + {/* [Plan AA S24 t2 wrap fix] inline-block icon + inline text → mirror fe-user. */} + + {node.label} ) } diff --git a/fe-user/src/components/Layout.tsx b/fe-user/src/components/Layout.tsx index 32f3914..c3b800e 100644 --- a/fe-user/src/components/Layout.tsx +++ b/fe-user/src/components/Layout.tsx @@ -176,24 +176,25 @@ function MenuGroup({ node, depth }: { node: MenuNode; depth: number }) { {open && (
- - {/* [Plan AA S24 t1] Revert truncate Plan U S23 t11 — fit full label hoặc - wrap natural. NavLink `title` (line 241) giữ tooltip accessibility. */} - {effectiveLabel(node)} + {/* [Plan AA S24 t2 wrap fix] inline-block icon + inline text → label dài + wrap về đầu hàng (under icon, KHÔNG indent sau icon). */} + + {effectiveLabel(node)} ) } @@ -283,16 +284,15 @@ function StaticLeaf({ node }: { node: MenuNode }) { title={effectiveLabel(node)} className={({ isActive }) => cn( - 'flex min-w-0 items-center gap-2.5 rounded-md px-3 py-2 text-sm font-medium transition', + 'block rounded-md px-3 py-2 text-[12px] font-medium leading-snug transition', isActive ? 'bg-brand-50 text-brand-700' : 'text-slate-600 hover:bg-slate-100 hover:text-slate-900', ) } > - - {/* [Plan AA S24 t1] Revert truncate Plan U S23 t11 — StaticLeaf "Hộp thư" - label ngắn (7 chars) không bao giờ overflow, drop truncate cho - consistent với MenuLeaf + MenuGroup. */} - {effectiveLabel(node)} + {/* [Plan AA S24 t2 wrap fix] inline-block icon + inline text — consistent + với MenuLeaf + MenuGroup. */} + + {effectiveLabel(node)} ) }