Skip to content

The suggestion chips size to their text, not the whole canvas - #334

Merged
mattshax merged 1 commit into
mainfrom
next-up-height
Sep 8, 2026
Merged

The suggestion chips size to their text, not the whole canvas#334
mattshax merged 1 commit into
mainfrom
next-up-height

Conversation

@mattshax

@mattshax mattshax commented Sep 8, 2026

Copy link
Copy Markdown
Member

.chat-canvas > * { height: 100% } forces every direct child to full height for the package's own layout, and the next-message suggestion row is one of those children. It filled the canvas, and with the default align-items: stretch each chip inflated with it, drawing giant circles over the conversation.

height: auto plus align-items: flex-start on the row and height: auto on the chips. Measured in a headless browser against the live app: chips 26px tall in a 58px wrapped row, canvas 779px. The conversation scrubber and the persona buttons hit this same rule before; the comment names it so the next component does not.

Every direct child of the chat canvas is forced to full height for the
package's own layout, and the suggestion row is one of those children:
it filled the canvas and stretched each chip into a circle drawn over
the conversation. The row now sizes to its content and each chip to its
own text. Measured in a browser: chips 26px tall in a 58px row, against
a 779px canvas. The scrubber and the persona buttons hit this same rule
before, which is why the comment names it.
@mattshax
mattshax merged commit c11bbba into main Sep 8, 2026
1 check passed
@mattshax
mattshax deleted the next-up-height branch September 8, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant