Skip to content

fix(ConversationItem): keep the row height when opening clears the unread count - #588

Merged
lorant-one merged 2 commits into
previewfrom
fix/conversation-item-height
Nov 24, 2026
Merged

lorant-one merged 2 commits into
previewfrom
fix/conversation-item-height

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Fixes the Once UI board report "this element's height collapses by a few pixels when active" on the Chat docs page.

Cause: the unread badge is 20px tall and the preview text line is 18px. A row with an unread count was 56px; opening it cleared the count and the row dropped to 54px. I measured this on docs.once-ui.com/modules/chat: Lorant's row goes from 56 to 54 when clicked.

Fix: the preview line now has a min-height equal to the badge's height (1.25rem). Every row keeps the same height, with or without a count.

Checks: core typecheck passes and the chat tests pass (69/69). Biome is clean on the changed files; the package-wide lint fails the same way on preview without this change.


Generated by Claude Code

…read count

The unread badge is 20px tall and the preview line 18px, so a row with a
count shrank by 2px when it was opened. The preview line now always
holds the badge's height.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtxyt75uZqx1mXdnyb8

Copy link
Copy Markdown
Member Author

The visual check found one change: the /modules/chat ConversationItem demo went from 636×250 to 636×254. That is the intended change. The two rows without an unread count now keep the badge's height (2px each), so no row shrinks when it's opened. I added the visual-change label.


Generated by Claude Code

@lorant-one
lorant-one merged commit 1b894cc into preview Nov 24, 2026
12 of 13 checks passed
lorant-one added a commit that referenced this pull request Nov 24, 2026
* chore(release): core, foundations, fx and blocks 3.1.0

Moves Unreleased under 3.1.0 (2026-11-25), writes the entries the
3.1 PRs left for the release, gathers the 3.1 entries that landed in
the old 2.x Unreleased block, and lists the changed default looks.
blocks now needs core ^3.1.0 (ColorButton).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtx8NozwfTMFAJUwVuh

* docs(changelog): Skeleton generating's new look (#595)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtx8NozwfTMFAJUwVuh

* docs(changelog): ConversationItem row height (#588)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtx8NozwfTMFAJUwVuh

* Merge preview; regenerate ai spec and bundle sizes

* docs(changelog): Skeleton generating is a dot matrix (#595)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtx8NozwfTMFAJUwVuh

* Regenerate ai spec and bundle sizes

* chore(release): date 3.1.0 for today's ship

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtx8NozwfTMFAJUwVuh

---------

Co-authored-by: Claude <[email protected]>
@github-actions github-actions Bot mentioned this pull request Nov 24, 2026
27 tasks done
@lorant-one lorant-one added the approved label Nov 24, 2026 — with Claude
@lorant-one
lorant-one deleted the fix/conversation-item-height branch November 29, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants