Commit 8891e22
authored
Add spacing between composer snackbar and input row (#6423)
* Add 16 dp gap between snackbar and composer input
Address the SDK Testing Feedback ticket about snackbar spacing in the
fixed-style composer. Override the snackbar lambda at the composer
call site to add 16 dp bottom padding around the visible card.
Combined with the existing 16 dp padding inside StreamSnackbar, the
visible gap above the input row is now 32 dp.
Other changes:
- StreamSnackbar.modifier now applies to the outer Box instead of the
inner Surface (idiomatic Compose; internal-only API).
- Replace the hardcoded 4.dp shadow with StreamTokens.elevation3.
- The new entry in the api dump is the auto-generated holder for the
inline snackbar lambda.
* Drop redundant outer padding around composer input row
The Row's padding(vertical = spacing2xs) added 8 dp to the composer
surface with no Figma backing; the inner padding already provides the
spec spacing. Also remove a wrapContentHeight() from the
MessageComposer call in ChannelScreen — Column already grants
intrinsic vertical sizing to its children, so the modifier had no
effect.
Re-record MessageComposerTest snapshots.
* Expose composer snackbar via ChatComponentFactory
Add MessageComposerSnackbar to the factory with a matching
MessageComposerSnackbarParams holder, mirroring the pattern used by the
audio-recording snackbars. The default keeps the 16 dp bottom padding
introduced in the previous commit. Customers can now override the
composer-level snackbar appearance the same way they can override other
composer slots.1 parent 9289f7a commit 8891e22
16 files changed
Lines changed: 50 additions & 9 deletions
File tree
- stream-chat-android-compose
- api
- src
- main/java/io/getstream/chat/android/compose/ui
- messages
- composer
- theme
- util
- test/snapshots/images
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1957 | 1957 | | |
1958 | 1958 | | |
1959 | 1959 | | |
| 1960 | + | |
1960 | 1961 | | |
1961 | 1962 | | |
1962 | 1963 | | |
| |||
3446 | 3447 | | |
3447 | 3448 | | |
3448 | 3449 | | |
| 3450 | + | |
3449 | 3451 | | |
3450 | 3452 | | |
3451 | 3453 | | |
| |||
3636 | 3638 | | |
3637 | 3639 | | |
3638 | 3640 | | |
| 3641 | + | |
3639 | 3642 | | |
3640 | 3643 | | |
3641 | 3644 | | |
| |||
4835 | 4838 | | |
4836 | 4839 | | |
4837 | 4840 | | |
| 4841 | + | |
| 4842 | + | |
| 4843 | + | |
| 4844 | + | |
| 4845 | + | |
| 4846 | + | |
| 4847 | + | |
| 4848 | + | |
| 4849 | + | |
| 4850 | + | |
| 4851 | + | |
| 4852 | + | |
4838 | 4853 | | |
4839 | 4854 | | |
4840 | 4855 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
367 | 366 | | |
368 | 367 | | |
369 | 368 | | |
370 | | - | |
371 | | - | |
372 | | - | |
| 369 | + | |
373 | 370 | | |
374 | 371 | | |
375 | 372 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
302 | | - | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
334 | 338 | | |
335 | 339 | | |
336 | 340 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1705 | 1705 | | |
1706 | 1706 | | |
1707 | 1707 | | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
1708 | 1724 | | |
1709 | 1725 | | |
1710 | 1726 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1282 | 1282 | | |
1283 | 1283 | | |
1284 | 1284 | | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
1285 | 1294 | | |
1286 | 1295 | | |
1287 | 1296 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
0 commit comments