[CLAUDE] FE: accordion mutex Pe_* + sidebar width w-72 + label nowrap
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 2m56s
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 2m56s
2 fix user session 3:
1. Accordion mutex cho Pe_ groups (2 phieu Duyet NCC + Duyet NCC va
Giai phap) — truoc chi Ct_ (7 HD) co mutex, Pe_ dung localOpen rieng
→ user click 1 Pe_ group xong click Pe_ khac → ca 2 expanded cung luc.
Fix: extend AccordionContextValue + expandedPeCode + INT_TO_PE_CODE
map. MenuGroup branch: isCtAccordion || isPeAccordion (families doc
lap — user co the mo 1 Ct_ + 1 Pe_ cung luc). useEffect URL sync:
/purchase-evaluations?type → Pe; /contracts* ?type → Ct.
2. Sidebar width w-64 (256px) → w-72 (288px) de label QUY TRINH CHON
THAU PHU - NCC (30 char uppercase tracking-wide) fit single-line
thay vi wrap 2 dong. Top-level group class:
text-xs tracking-wider → text-[11px] tracking-wide + whitespace-nowrap
Dong bo ca fe-admin + fe-user.
This commit is contained in:
@ -118,7 +118,7 @@ function MenuGroup({ node, depth }: { node: MenuNode; depth: number }) {
|
||||
className={cn(
|
||||
'flex w-full items-center justify-between rounded-md transition',
|
||||
isTopLevel
|
||||
? 'px-3 py-2 text-xs font-semibold uppercase tracking-wider text-slate-500 hover:bg-slate-100'
|
||||
? 'px-3 py-2 text-[11px] font-semibold uppercase tracking-wide text-slate-500 hover:bg-slate-100 whitespace-nowrap'
|
||||
: 'px-3 py-1.5 text-[13px] font-medium text-slate-600 hover:bg-slate-100 hover:text-slate-900',
|
||||
)}
|
||||
>
|
||||
@ -175,7 +175,7 @@ export function Layout() {
|
||||
|
||||
return (
|
||||
<div className="flex h-screen">
|
||||
<aside className="flex w-64 flex-col border-r border-slate-200 bg-white">
|
||||
<aside className="flex w-72 flex-col border-r border-slate-200 bg-white">
|
||||
<div className="flex h-16 items-center border-b border-slate-200 px-5">
|
||||
<Link to="/dashboard" className="flex items-center gap-2.5">
|
||||
<img src="/logo.png" alt="Solutions" className="h-8 w-auto" />
|
||||
|
||||
Reference in New Issue
Block a user