Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div id="app">
<div id="app" :class="{ 'fill-viewport': isActive('/video-page') }">
<div class="sidebar" ref="sidebar">
<img src="@/assets/logo.png" alt="Logo" class="logo">
<router-link class="link" :class="{ active: isActive('/') }" to="/">System</router-link>
Expand Down Expand Up @@ -94,16 +94,21 @@ html, body {

#app {
display: flex;
/* Pin to the viewport width. Without this the flex container shrink-wraps to its
content, which collapses any page whose content has no intrinsic width — the Video
page (the video is position:absolute, so the frame's only in-flow sibling is the
short "Video" title) renders as a thin strip the width of that title. */
width: 100%;
font-family: 'Roboto', sans-serif;
color: var(--ark-color-black); /* Should be your black color */
background-color: var(--ark-color-white); /* Your specified white color */
}

/* The app root is a shrink-wrapping flex item, so each page sizes #app to its own
content — data pages keep their natural width and stay left-aligned beside the sidebar.
The Video page has no intrinsic width (the video is position:absolute, leaving only the
short "Video" title in flow), so it would collapse to a thin strip. Pin #app to the
viewport on the Video route only, so the frame fills the area without also stretching
and centering the data pages in a full-width column. */
#app.fill-viewport {
width: 100%;
}

.sidebar {
position: fixed;
height: 100vh; /* Full height */
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/AutopilotPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ export default {
align-items: center;
width: 100%;
max-width: 1200px;
min-width: 800px;
margin: 0 auto;
padding: 20px;
gap: 20px;
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/ConnectionsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,7 @@ export default {
align-items: center;
width: 100%;
max-width: 1200px;
min-width: 800px;
margin: 0 auto;
padding: 20px;
gap: 20px;
Expand Down
Loading