You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 🎯 Goal
This PR refines dynamic bottom sheet sizing and cleans up a few related
UI issues in the SDK and `SampleApp`.
- Adds content driven initial sizing to `BottomSheetModal` while keeping
the top snap available (this is toggleable by a flag and will assume
`height` as the maximum height the sheet can grow to through dynamic
sizing)
- Moves dynamic sizing calculations to shared values
- Adds test coverage for the new bottom sheet snap point utilities
- Fixes channel preview spacing for very long channel names
- Hides quoted replies for attachment action previews such as ephemeral
`Giphys`
- Preserves the correct standalone message shell styling for ephemeral
`Giphy` previews
- Moves `hasAttachmentActions` into `MessageContext` so it is computed
once and reused downstream
On the `SampleApp` side, it fixes a few visual inconsistencies:
- network/loading and DM button backgrounds now match the header
- grouped `ChannelAvatar` now respects the requested size
- group channel details now actually request `2xl`
- `GoBack` and `GoForward` chevrons now mirror internally in `RTL` as an
SVG PoC
## 🛠 Implementation details
<!-- Provide a description of the implementation -->
## 🎨 UI Changes
<!-- Add relevant screenshots -->
<details>
<summary>iOS</summary>
<table>
<thead>
<tr>
<td>Before</td>
<td>After</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<!--<img src="" /> -->
</td>
<td>
<!--<img src="" /> -->
</td>
</tr>
</tbody>
</table>
</details>
<details>
<summary>Android</summary>
<table>
<thead>
<tr>
<td>Before</td>
<td>After</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<!--<img src="" /> -->
</td>
<td>
<!--<img src="" /> -->
</td>
</tr>
</tbody>
</table>
</details>
## 🧪 Testing
<!-- Explain how this change can be tested (or why it can't be tested)
-->
## ☑️ Checklist
- [ ] I have signed the [Stream
CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform)
(required)
- [ ] PR targets the `develop` branch
- [ ] Documentation is updated
- [ ] New code is tested in main example apps, including all possible
scenarios
- [ ] SampleApp iOS and Android
- [ ] Expo iOS and Android
0 commit comments