From fca2d5ce78aee07a1f2b8033a3e34aa567e84a85 Mon Sep 17 00:00:00 2001 From: Danny Date: Fri, 6 Nov 2026 18:36:00 -0800 Subject: [PATCH] Theme Maker: Stop the preview jumping when its status notes appear --- openpilot/starpilot/galaxy/web/css/settings.css | 2 ++ openpilot/starpilot/galaxy/web/js/onroad-layout-template.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openpilot/starpilot/galaxy/web/css/settings.css b/openpilot/starpilot/galaxy/web/css/settings.css index 8446424fc8..8b256ea740 100644 --- a/openpilot/starpilot/galaxy/web/css/settings.css +++ b/openpilot/starpilot/galaxy/web/css/settings.css @@ -649,6 +649,8 @@ input[type="range"].gx-slider:active::-moz-range-thumb { /* Tap-area overlay label sits on the preview while the grid toggle is on. */ .gx-layout__preview-card > .gx-layout__stage { position: relative; margin-inline: 0; min-width: 0; } .gx-layout__stage-chip { position: absolute; top: 6px; right: 6px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #b799ff88; border-radius: var(--radius-full); background: rgba(22, 18, 31, .82); color: #d8c8ff; font-size: var(--fs-xs); font-weight: var(--fw-bold); white-space: nowrap; pointer-events: none; } +.gx-layout__stage-chip--bottom { top: auto; right: auto; bottom: 6px; left: 6px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; display: block; } +.gx-layout__stage-chip--second { bottom: 34px; } .gx-layout__stage-chip--below { position: static; justify-self: end; } .gx-layout__stage-chip--start { right: auto; left: 6px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; display: block; } /* Covers the whole bar, buttons included, so its size never changes mid-drag. */ diff --git a/openpilot/starpilot/galaxy/web/js/onroad-layout-template.js b/openpilot/starpilot/galaxy/web/js/onroad-layout-template.js index 517ed330df..7fa55ce72e 100644 --- a/openpilot/starpilot/galaxy/web/js/onroad-layout-template.js +++ b/openpilot/starpilot/galaxy/web/js/onroad-layout-template.js @@ -65,9 +65,9 @@ export const ONROAD_LAYOUT_TEMPLATE = `

{{ state.scene === 'general' ? 'Arrange all enabled widgets with sample readings. Use a driving scene to check when they appear.' : 'Eyes follow this driving scene. Choose General edit to arrange widgets hidden here.' }}

-

{{ nativeBackdropReady ? 'The comma screen could not refresh. Showing the last one.' : 'The comma screen is unavailable. Showing a sketch.' }}

-

{{ state.art.url ? 'Widget preview could not refresh. Showing the last preview.' : 'Widget preview unavailable. Placement controls remain available.' }}

+ {{ nativeBackdropReady ? 'The comma screen could not refresh. Showing the last one.' : 'The comma screen is unavailable. Showing a sketch.' }} + {{ state.art.url ? 'Widget preview could not refresh. Showing the last preview.' : 'Widget preview unavailable. Placement controls remain available.' }}