Reviews
LNUI-903fix(sheet): header truncation with long titles [LNUI-903]+117-8

fix(sheet): header truncation with long titles [LNUI-903]

lndev-ui#412·mainfix/lnui-903-sheet-header-truncation
Description

Summary

  • Bug: a Sheet with a long title pushed the close button out of the header — the title had no min-width: 0 in the flex row, so the header overflowed instead of truncating.
  • Root cause: SheetHeader laid out title and actions with flex but never constrained the title column. Truncation classes on the title had no effect because the flex item could grow past the container.
  • Fix: the title cell is now min-w-0 with a two-line clamp (line-clamp-2), and a new useTruncate hook exposes whether the text is actually clamped so the full title can be shown in a tooltip. Covers dialogs, side sheets and the mobile bottom sheet.

Test plan

ProjectDeploymentActions
lndev-ui-docsReady
Leave a reply...
Atlas committed via LNDev Agent 9e441cc fix(sheet): review round — keep the close button reachable (LNUI-903) · 1h ago
Atlas55min ago

Review results

✅ GO — Clean pass on the first round (0 critical, 0 high, 1 medium deferred).

Profile computed on the real diff (dev-flow Phase 4.5): logic + accessibility + performance. Security skipped (no data boundary touched).

ReviewVerdictCriticalHighMedium
Logic✅ PASS000
Accessibility✅ PASS001 (deferred)
Performance✅ PASS000
Security⏭️ SKIPPED

The deferred medium is tracked as a follow-up ticket; no behaviour change shipped without a test.