Skip to content

fix(frontend): scope full-width layout to the Video route#96

Merged
dakejahl merged 1 commit into
mainfrom
fix/scope-app-fullwidth-to-video
Jun 27, 2026
Merged

fix(frontend): scope full-width layout to the Video route#96
dakejahl merged 1 commit into
mainfrom
fix/scope-app-fullwidth-to-video

Conversation

@dakejahl

Copy link
Copy Markdown
Contributor

Summary

Restore the original layout of every data page (System, Autopilot, Connections, Services) while keeping the Video page full-width fix from 962f4f8.

Problem

962f4f8 fixed the Video page — which collapsed to a thin strip — by setting width: 100% on #app. Because #app is mounted inside the index.html #app container it is a shrink-wrapping flex item, so pinning it to 100% forced the full viewport width on every route. Each data page's margin: 0 auto then centered its width-capped content in a full-width column instead of sitting at its natural width beside the sidebar.

Solution

Scope the width: 100% to the Video route only, via a fill-viewport class toggled by the active route, and restore the min-width: 800px the commit dropped from the Autopilot and Connections containers. Non-Video routes go back to shrink-wrapping #app to their own content, so they render as they did before the commit — the Autopilot and Connections files are byte-identical to their pre-commit state, and System/Services were never width-constrained by #app. On the Video route #app still resolves to display: flex; width: 100%, so the frame keeps the full-width fix.

962f4f8 fixed the Video page by setting width:100% on #app, but since
#app is a shrink-wrapping flex item that pinned every route to the full
viewport, so each data page's `margin: 0 auto` centered its capped
content in a full-width column instead of sitting at its natural width
beside the sidebar.

Toggle a `fill-viewport` class on #app for the Video route only, and
restore the `min-width: 800px` the commit dropped from the Autopilot and
Connections containers. Non-Video routes now render identically to before
the commit; the Video route still gets the full-width frame.
@dakejahl
dakejahl merged commit 0ddc481 into main Jun 27, 2026
1 check passed
@dakejahl
dakejahl deleted the fix/scope-app-fullwidth-to-video branch June 27, 2026 00:12
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.

1 participant