Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- Open Settings → Appearance and set Interface font to
Inter Variableat20 px(wrapping starts at18 px). - Open a thread in a window wide enough for the Thread details card to render inline on the right (not as a popover).
- Right-click the Thread details card and enable Machine load.
- Observe the CPU, Memory, and Disk rows when Memory shows
XX.X GB / XX.X GBand Disk showsX.XX TB free.
Expected behavior
The inline Thread details card scales with --thread-details-panel-width (17.5rem) just like popover mode, and every Machine load row renders on one non-overlapping line with the full Memory label visible.
Actual behavior
Memory truncates to Mem... while values like 12.3 GB / 61.5 GB wrap onto two lines inside fixed-height rows and collide vertically with the Disk row. When Disk also wraps (e.g. 1.98 TB free, 12 chars with two decimals under 10), its top line collides directly into the bottom line of Memory, while shorter integer Disk values (e.g. 721 GB free) stay on one line with a very tight gap under wrapped Memory.
Root cause (verified on main @ ec97f79):
- Inline card width ignores root
rem:apps/web/src/index.css:133defines--thread-details-panel-width: 17.5rem, so popover mode scales with Interface font size (350pxat20pxroot, where all three rows fit cleanly). Inline mode hardcodesTHREAD_DETAILS_CARD_WIDTH = 280inapps/web/src/components/chat/threadDetailsCardLayout.ts:6and appliesstyle={{ width: placement.width }}inapps/web/src/components/chat/ThreadDetailsCard.tsx:158. Inner spacing, text, andminmax(3rem, 1fr)grow inremwhile the inline card stays locked at280px(same px-vs-rem mismatch class as [Bug]: sidebar thread cards clip their bottom line at larger interface font sizes #45607). UsageRowallows value wrapping inside a fixedh-6row:apps/web/src/components/chat/ThreadDetailsUsage.tsx:393,438fixes each row toh-6(1.5rem) withoutwhitespace-nowrapon the value<span>(text-end font-medium tabular-nums), whilelabelusestruncate(overflow: hidden) inside anautotrack. Whenever horizontal room runs out (inline at larger font sizes, narrow popovers, or longer translations), the label track collapses toMem...and the value wraps vertically out of itsh-6box into the adjacent row.
Impact
Cosmetic issue
Version or commit
0.1.14-nightly.20261201.5530 (main @ ec97f79)
Environment
Windows (x64), T3 Code desktop app (nightly), Interface font: Inter Variable 20 px
Logs or stack traces
N/A (CSS layout bug, no console errors)Screenshots, recordings, or supporting files
Workaround
Keep Interface font size at 16 px, narrow the window so Thread details switches to popover mode (which uses 17.5rem), or hide Machine load from the card's context menu.
Note
Draft reviewed by the author, final version posted by Gemini 4 Neon
Activity