Repository navigation
Conversation
… stage Safari/WebKit does not transfer `aspect-ratio` into a flex item's automatic main size, so the desktop stage rule's `width: auto` collapsed `.sc-stage-shell` to ~0px in Safari desktop — the viewer showed no video. Chromium derives the width from `aspect-ratio` + the definite height, so it was unaffected; the mobile breakpoint already sets an explicit width, so mobile Safari was fine too. Compute the width explicitly from the same height clamp (× 9/16). Verified in real WebKit against the live Space: stage 2px→194px, video 0px→192px, aspect 0.561 ≈ 9/16. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Safari/desktop showed no video in the main viewer — the 9:16 stage collapsed to ~0px wide. Root-caused, fixed, and verified in real WebKit; already deployed to
macayaven/small-cuts. This PR lands the same one-line CSS change in the repo so source and Space stay in sync.Root cause
The desktop stage rule (
viewer.py) set a definiteheightwithwidth: autoand relied onaspect-ratio: 9/16to derive the width. WebKit does not transferaspect-ratiointo a flex item's automatic main size, so the stage — and itswidth:100%<video>child — collapsed to 0px. Chromium derives the width and was unaffected; the mobile breakpoint already uses an explicit width, so mobile Safari was fine (matching the report: "Safari mobile is fine, desktop isn't").Fix
Compute the width explicitly from the same height clamp:
Verification (real WebKit, live Space)
Local gate green:
ruff check✓ ·ruff format --check✓ ·pytest321 passed.Not in scope
The separate "narration silent with content blockers on" report is a cross-origin media effect (media served from the HF CDN) and is being addressed by disabling the bucket's CDN cache — no code change here.