Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(dashboard-next): stop the top bar forcing the shell past a 320px screen

nirholasb8610cfe0975
diff --git a/public/dashboard-next/shell.css b/public/dashboard-next/shell.css
index feee41415..708d32f40 100644
--- a/public/dashboard-next/shell.css
+++ b/public/dashboard-next/shell.css
@@ -431,9 +431,13 @@ button { font: inherit; color: inherit; background: none; border: none; cursor:
}
@media (max-width: 880px) {
+ /* minmax(0, 1fr), not a bare 1fr: a bare 1fr floors the column at the
+ topbar's min-content width, so at 320px the search pill plus the account
+ button pushed the whole shell (topbar AND main) out to ~417px and every
+ dashboard page clipped its right edge. */
.dn-shell,
.dn-shell[data-rail-collapsed='true'] {
- grid-template-columns: 1fr;
+ grid-template-columns: minmax(0, 1fr);
grid-template-rows: var(--dn-topbar-h) 1fr 64px;
grid-template-areas: 'topbar' 'main' 'rail';
}
@@ -542,11 +546,17 @@ button { font: inherit; color: inherit; background: none; border: none; cursor:
/* Topbar shrink at ≤880px: hide breadcrumb, let search flex. */
.dn-topbar-crumb { display: none; }
+ .dn-topbar { min-width: 0; }
.dn-topbar-search {
min-width: 0;
flex: 1 1 auto;
+ overflow: hidden;
}
+ .dn-topbar-search > span { min-width: 0; overflow: hidden; }
+ .dn-topbar-search > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-topbar-search kbd { display: none; }
+ .dn-topbar-user { flex: 0 1 auto; min-width: 0; }
+ .dn-topbar-user [data-slot='label'] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9ch; }
/* Tap targets ≥44px. */
.dn-topbar-btn { min-height: 44px; min-width: 44px; justify-content: center; }
.dn-rail-mobile-slot { min-height: 44px; }
@@ -580,6 +590,7 @@ button { font: inherit; color: inherit; background: none; border: none; cursor:
/* Single-column reflow helper for page grids. */
.dn-panel-grid { grid-template-columns: 1fr !important; }
.dn-main-inner { padding: 14px 14px 80px; }
+ .dn-topbar { padding: 0 14px; gap: 10px; }
}
/* ==========================================================================
diff --git a/src/dashboard-next/components/topbar.js b/src/dashboard-next/components/topbar.js
index c39704139..2d1f060ee 100644
--- a/src/dashboard-next/components/topbar.js
+++ b/src/dashboard-next/components/topbar.js
@@ -24,7 +24,7 @@ export function renderTopbar(pathname) {
<button type="button" class="dn-topbar-search" data-action="open-palette" aria-label="Open command palette">
<span style="display:inline-flex;align-items:center;gap:8px">
<svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="7" cy="7" r="4.5"/><path d="M13 13l-2.6-2.6"/></svg>
- Search or jump to…
+ <span data-slot="search-label">Search or jump to…</span>
</span>
<kbd>⌘K</kbd>
</button>