diff --git a/web/components/Collapsible.tsx b/web/components/Collapsible.tsx index 4f79522..0e93f38 100644 --- a/web/components/Collapsible.tsx +++ b/web/components/Collapsible.tsx @@ -56,7 +56,7 @@ export function Collapsible({ aria-expanded={open} className="flex w-full items-baseline justify-between gap-2 px-4 py-3 text-left transition hover:bg-zinc-900/60" > - + {subtitle != null && ( - {subtitle} + // min-w-0 + truncate: subtitle 이 길어지면(예: PriceTargets 의 "목표 1,234,567 · + // 손절 987,654") 사이드바 폭을 넘기는 대신 말줄임표로 끝나도록. shrink-0 였을 땐 + // title 을 밀어내며 헤더가 두 줄로 깨질 수 있었음. title 쪽도 min-w-0 을 줘 flex + // shrink 계산이 올바르게 되도록. + + {subtitle} + )}