diff --git a/changelog.d/fixed-topbar-hamburger-mobile.md b/changelog.d/fixed-topbar-hamburger-mobile.md new file mode 100644 index 0000000000..a577de3c04 --- /dev/null +++ b/changelog.d/fixed-topbar-hamburger-mobile.md @@ -0,0 +1 @@ +- Dashboard topbar: the ≡ drawer toggle is no longer clipped off the left edge on phones, and on ≤360px-wide screens the 🐛/⚙ chips collapse into the account menu (which gains a Settings entry) instead of overflowing the row. diff --git a/src/docs/dashboard.md b/src/docs/dashboard.md index db1e528124..96bed2450b 100644 --- a/src/docs/dashboard.md +++ b/src/docs/dashboard.md @@ -50,7 +50,7 @@ On the v5 line the standalone Platform section is not part of the default dashbo The light dashboard topbar keeps high-signal operational state only: project name, fleet controls, health, auth, and a compact ACMM autonomy chip such as `L5 · Semi-Autonomous`. The chip is display-only and navigates to the ACMM Eval section; changing levels remains in the existing ACMM dialog/sidebar controls. -Build/version details live in the bottom-left sidebar chip. The collapsed chip shows the short SHA, release channel, and an orange `↑` marker only when an upgrade is available. Open the chip for the full commit link, channel/tracking state, compare/release-notes links, last upgrade status when reported, copy-version, and the manual upgrade action. On small screens the sidebar is reachable through the hamburger drawer, so the version menu remains available without returning the long version strip to the topbar. +Build/version details live in the bottom-left sidebar chip. The collapsed chip shows the short SHA, release channel, and an orange `↑` marker only when an upgrade is available. Open the chip for the full commit link, channel/tracking state, compare/release-notes links, last upgrade status when reported, copy-version, and the manual upgrade action. On small screens the sidebar is reachable through the hamburger drawer, so the version menu remains available without returning the long version strip to the topbar. On the narrowest phones (≤360px wide) the topbar also drops the 🐛 feedback and ⚙ Settings chips so the row never overflows; both stay reachable from the account (avatar) menu, and feedback from the drawer as well. ## Übersicht widget diff --git a/src/pkg/dashboard/static-src/css/responsive.css b/src/pkg/dashboard/static-src/css/responsive.css index 9e8d36cbb2..57c78127a8 100644 --- a/src/pkg/dashboard/static-src/css/responsive.css +++ b/src/pkg/dashboard/static-src/css/responsive.css @@ -801,4 +801,15 @@ justify-content: center; } } + /* Narrowest phones (iPhone SE/mini class): the right strip's five icon + chips plus the ≡ and ACMM chips no longer fit one row, and the strip + clips overflow rather than wrapping, so the lowest-priority chips go. + Both stay reachable — Feedback from the drawer and the account menu, + Settings from the account menu (#15476). */ + @media (max-width: 360px) { + #feedback-bug-btn, + #oc-settings-btn { + display: none; + } + } diff --git a/src/pkg/dashboard/static-src/css/topbar.css b/src/pkg/dashboard/static-src/css/topbar.css index e0445d43a2..db014df0d4 100644 --- a/src/pkg/dashboard/static-src/css/topbar.css +++ b/src/pkg/dashboard/static-src/css/topbar.css @@ -112,10 +112,12 @@ } /* Drawer toggle. Hidden on desktop; the ≤1024px block flips it to inline-flex. It lives with the project title so the center run-state - group remains visually anchored. */ + group remains visually anchored. No negative margin: .oc-topbar-left + clips overflow, so anything pulled past its left edge is cut off — + on phones that showed up as a half-circle hamburger (#15476). */ #oc-drawer-toggle { display: none; - margin-left: -10px; + flex: 0 0 auto; } #oc-drawer-backdrop { display: none; } .oc-topbar-center { container: navbar-center / inline-size; position: relative; z-index: 1; justify-self: stretch; display: flex; align-items: center; justify-content: center; gap: var(--nav-chip-gap, 8px); min-width: 0; max-width: 100%; overflow: hidden; } diff --git a/src/pkg/dashboard/static-src/html/topbar.html b/src/pkg/dashboard/static-src/html/topbar.html index 086be1881c..2e000de8c9 100644 --- a/src/pkg/dashboard/static-src/html/topbar.html +++ b/src/pkg/dashboard/static-src/html/topbar.html @@ -65,6 +65,7 @@ My hives ↗ API Docs ↗ +
diff --git a/src/pkg/dashboard/static/index.html b/src/pkg/dashboard/static/index.html index 0aa2513327..50e5899352 100644 --- a/src/pkg/dashboard/static/index.html +++ b/src/pkg/dashboard/static/index.html @@ -478,10 +478,12 @@ } /* Drawer toggle. Hidden on desktop; the ≤1024px block flips it to inline-flex. It lives with the project title so the center run-state - group remains visually anchored. */ + group remains visually anchored. No negative margin: .oc-topbar-left + clips overflow, so anything pulled past its left edge is cut off — + on phones that showed up as a half-circle hamburger (#15476). */ #oc-drawer-toggle { display: none; - margin-left: -10px; + flex: 0 0 auto; } #oc-drawer-backdrop { display: none; } .oc-topbar-center { container: navbar-center / inline-size; position: relative; z-index: 1; justify-self: stretch; display: flex; align-items: center; justify-content: center; gap: var(--nav-chip-gap, 8px); min-width: 0; max-width: 100%; overflow: hidden; } @@ -6200,6 +6202,17 @@ justify-content: center; } } + /* Narrowest phones (iPhone SE/mini class): the right strip's five icon + chips plus the ≡ and ACMM chips no longer fit one row, and the strip + clips overflow rather than wrapping, so the lowest-priority chips go. + Both stay reachable — Feedback from the drawer and the account menu, + Settings from the account menu (#15476). */ + @media (max-width: 360px) { + #feedback-bug-btn, + #oc-settings-btn { + display: none; + } + } /* ══ Input system (Phase 2) ══ One recipe for text inputs/selects/textareas (derived from the old @@ -7108,6 +7121,7 @@