Commit 7ed1e5a
authored
fix(chat): give prompt suggestion cards a uniform height (#261)
## What
The **Research topic** entry in the "Suggested messages" carousel has a
short
prompt (`"What are the latest developments in AI?"`) that wraps to
**two** lines
instead of three. Because the suggestion card has no fixed height, that
card
rendered one line shorter than the rest, so its container was smaller
and the
carousel looked uneven.
## Fix
Reserve the full three-line height for the prompt text (matching the
`numberOfLines={3}` cap) so every card is the same size regardless of
prompt
length.
## Before / After
Same two cards in both shots — **Cooking** (3-line prompt) next to
**Research
topic** (2-line prompt).
**Before** — the *Research topic* card ends a line higher than its
neighbours:

**After** — all cards share the same height (the shorter prompt just
leaves the
third line empty):
1 parent 7fbb403 commit 7ed1e5a
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
0 commit comments