Commit 4c62d00
committed
fix: also apply width attribute to video block
Apply the same fix as the image block to video:
- React VideoPreview now sets width on the <video> element so read-only
rendering includes it.
- React VideoToExternalHTML now serializes previewWidth (it was
previously dropped entirely on export).
- Core video render path guards `video.width = previewWidth` against
undefined (assigning undefined to a numeric DOM property coerces to
0).
Audio and File blocks don't have a previewWidth prop, so no change is
needed there.
Refs #27261 parent b2aa79c commit 4c62d00
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
0 commit comments