feat(ui): expand compact density to sidebar / header / composer (LC-218) #260
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/lc-218-density-compact-expanded"
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?
Summary
User on staging: "setting density to 'compact' appears to do nothing." Strictly false (LC-194 tightened non-follow-up message rows by 8 px) but every other surface (sidebar, header, composer) stayed unchanged so the toggle reads as dead.
Expand the
[data-density="compact"]CSS block to consume three new opt-in attributes (data-lc-density-tight="row|header|composer") on the small set of stable container hooks that should respond. Attribute-driven (not class-string-coupled) so future Tailwind utility swaps don't silently un-compact a surface. Also replaces the brittle[id^="msg-"]:not([class*="py-0"])substring selector from LC-194.Surfaces affected
lc-pb-safebottom inset (LC-199 iOS home-indicator floor) preserved.Out of scope
headerrule would expand rather than tighten. Needs a separate shrink-only variant.Test plan
just build-cssrebuilds Tailwind CSS clean.cargo check -p lets-chat-serverclean./settings. Sidebar rows visibly tighter, room header visibly tighter, composer's top padding halved, message rows still tighter than comfortable.env(safe-area-inset-bottom)).Related blocker
db_custom_emojis::set_share_emojis_globally_round_tripsand 17 other test files have a pre-existing migration-list drift from LC-217 (PR #259): hand-rolled migration arrays stop at 0056 and miss the new0057_enclave_msg_rate_limit.sql. Runningcargo test --test db_custom_emojisafter LC-217 merged surfaces this. Independent of LC-218's changes; tracked as a follow-up. CI may go red on this branch until the sibling fix lands.rowandrow-densefor proportional compression (LC-218)