Skip to content

[Bug]: Machine load rows in inline thread details wrap, overlap, and truncate "Memory" at larger interface font sizes #46629

Done

Description

@Neonsy

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

  1. Open Settings → Appearance and set Interface font to Inter Variable at 20 px (wrapping starts at 18 px).
  2. Open a thread in a window wide enough for the Thread details card to render inline on the right (not as a popover).
  3. Right-click the Thread details card and enable Machine load.
  4. Observe the CPU, Memory, and Disk rows when Memory shows XX.X GB / XX.X GB and Disk shows X.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):

  1. Inline card width ignores root rem: apps/web/src/index.css:133 defines --thread-details-panel-width: 17.5rem, so popover mode scales with Interface font size (350px at 20px root, where all three rows fit cleanly). Inline mode hardcodes THREAD_DETAILS_CARD_WIDTH = 280 in apps/web/src/components/chat/threadDetailsCardLayout.ts:6 and applies style={{ width: placement.width }} in apps/web/src/components/chat/ThreadDetailsCard.tsx:158. Inner spacing, text, and minmax(3rem, 1fr) grow in rem while the inline card stays locked at 280px (same px-vs-rem mismatch class as [Bug]: sidebar thread cards clip their bottom line at larger interface font sizes #45607).
  2. UsageRow allows value wrapping inside a fixed h-6 row: apps/web/src/components/chat/ThreadDetailsUsage.tsx:393,438 fixes each row to h-6 (1.5rem) without whitespace-nowrap on the value <span> (text-end font-medium tabular-nums), while label uses truncate (overflow: hidden) inside an auto track. Whenever horizontal room runs out (inline at larger font sizes, narrow popovers, or longer translations), the label track collapses to Mem... and the value wraps vertically out of its h-6 box 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

image image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions