Commit 3f09362
authored
fix(MessageList): set width on message list scroll container (#3077)
### π― Goal
`.str-chat__message-list-scroll` is a flex child inside
`.str-chat__message-list` (which uses `display: flex; justify-content:
center`), but it had no `width` set β so it shrink-wrapped its content
instead of filling the available space up to its `max-width`.
### π Implementation details
- Added `width: 100%` to `.str-chat__message-list-scroll` in
`MessageList.scss` so it expands to fill the parent, capped by the
existing `max-width`
- Removed the now-redundant `width: 100%` override from the vite example
app's `index.scss`
### π¨ UI Changes
No visual change in the vite example app (which already had the
workaround). Other consumers that didn't apply their own override will
now see the message list correctly fill the available width.1 parent cf682c2 commit 3f09362
File tree
2 files changed
+1
-4
lines changed- examples/vite/src
- src/components/MessageList/styling
2 files changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | 216 | | |
221 | 217 | | |
222 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments