Skip to content

[players] Make preview height independent of viewport width#2057

Merged
frankrousseau merged 1 commit into
cgwire:mainfrom
frankrousseau:fix-preview-height-2056
Jun 17, 2026
Merged

[players] Make preview height independent of viewport width#2057
frankrousseau merged 1 commit into
cgwire:mainfrom
frankrousseau:fix-preview-height-2056

Conversation

@frankrousseau

Copy link
Copy Markdown
Contributor

Problems

  • The preview player height was gated on windowWidth > 1300, collapsing it to 200px on OS-scaled / high-DPI displays whose CSS viewport is under 1300px (e.g. a 1920x1200 panel at 150% scaling reports 1280px). Enlarging the preview then did almost nothing, while the same content on a 1920x1080 screen at 100% worked — the "resizing inconsistent across screen sizes" of Preview Window Resizing Inconsistent Across Screen Sizes #2056.

Solutions

  • Drop the viewport-width gate (and the now-unused windowWidth ref): the preview height follows available vertical space, not width. The windowHeight > 800 threshold and the compact light-mode (200px) are unchanged.

Fix #2056

The preview player height was gated on `windowWidth > 1300`, which collapsed
it to 200px on OS-scaled / high-DPI displays whose CSS viewport is under
1300px (a 1920x1200 panel at 150% scaling reports 1280px). Enlarging the
preview then did almost nothing, while the same content on a 1920x1080 screen
at 100% worked — the "resizing inconsistent across screen sizes" of cgwire#2056.

Height should follow available vertical space, not width: drop the width gate
and the now-unused windowWidth ref. The windowHeight > 800 threshold and the
compact light-mode (200px) are unchanged.

Fix cgwire#2056

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@frankrousseau frankrousseau merged commit 0cd3d0e into cgwire:main Jun 17, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preview Window Resizing Inconsistent Across Screen Sizes

1 participant