Commit f24bda9
authored
fix(home): drop letterbox band on deck example-prompt previews (#5105)
The baked deck preview (od.bakedPreview) is captured at the 1.31 tile
aspect, so a deck's fixed 16:9 stage self-letterboxes with a dark
--stage-bg band baked into the poster/clip. The existing data-od-mode
override only reframes the LIVE iframe surface, but the Home
example-prompt tiles render the BAKED media (preferBaked) — which was
object-fit:cover'd and top-anchored, so the top letterbox band showed as
a black strip above every deck slide.
Mirror the iframe deck treatment for the baked media: render the clip in
a native 16:9 box centered in the standard cell and center-crop it, so
cover() strips exactly the baked letterbox and the slide reads
edge-to-edge with no dark band. Non-deck tiles keep the top-anchored 1.31
clip so web-page hero headlines stay in frame.1 parent 32011bd commit f24bda9
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2398 | 2398 | | |
2399 | 2399 | | |
2400 | 2400 | | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
2401 | 2427 | | |
2402 | 2428 | | |
2403 | 2429 | | |
| |||
0 commit comments