feat(ui): intentional long-message truncation (LC-385) #395
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/lc-385-truncation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes LC-385. Part of the LC-383 room-polish-2 epic.
What
The LC-256 long-message fold already had a bottom fade, but the expand control was a bare blue "Show more" link, so the clamp read as accidental.
.lc-collapse-toggle: muted-to-content on hover, with a CSS-triangle chevron that rotates 180 on expand. The chevron is a::beforeborder triangle (not glyph content), soauto_scroll.htmlkeeps settingtextContentfor the label without wiping it, and screen readers don't announce the marker. The JS now toggles.lc-collapse-openalongside the existing label swap.--surface, so the cut reads as a deliberate fade, not a hard crop.Preserved
Progressive enhancement is unchanged: the full body always renders;
auto_scroll.htmlonly clamps + reveals the toggle when the body overflowsCOLLAPSE_MAX, and expand/collapse behaves exactly as before.Tests
./dev/cargo check,just build-css,just test,just test-saas- all green.🤖 Generated with Claude Code