Commit 1259682
Fix video embed sizing in fan club post cards (#14226)
## Summary
- Fix video embed not filling its 16:9 container in fan club post cards
on mobile
- The embedded HTML inside the `WebView` set `iframe { height: 100% }`
but neither `<html>` nor `<body>` had an explicit height, so the iframe
collapsed and left a visible gap inside the card
- Add `html, body { width: 100%; height: 100% }` (plus `display: block`
and `border: 0` on the iframe) so the iframe actually fills the WebView
- Apply the same fix to the shared `VideoEmbed` component, which has
identical embed HTML
## Test plan
- [ ] Open a fan club detail screen (mobile) and view a post containing
a YouTube video — the player should fill the rounded 16:9 card with no
whitespace below it
- [ ] Verify a Vimeo URL renders the same way
- [ ] Verify the locked-post placeholder (lock icon over a 331:170 box)
is unchanged
- [ ] Verify any other usages of `VideoEmbed` still render correctly
https://claude.ai/code/session_01MWtULVCQ8fcSSUnBr7gwfR
---
_Generated by [Claude
Code](https://claude.ai/code/session_01MWtULVCQ8fcSSUnBr7gwfR)_
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 8c2b99d commit 1259682
3 files changed
Lines changed: 7 additions & 2 deletions
File tree
- .changeset
- packages/mobile/src
- components/video-embed
- screens/coin-details-screen/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
0 commit comments