fix: stabilize console topbar layout
This commit is contained in:
+80
-3
@@ -13381,9 +13381,86 @@ textarea:focus {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
/* Final topbar layout guard: keep brand, nav, and user actions in their own lanes. */
|
||||
.topbar {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(230px, 280px) minmax(320px, max-content) minmax(300px, 1fr);
|
||||
column-gap: 18px;
|
||||
align-items: center;
|
||||
overflow: visible;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.topbar-logo {
|
||||
min-width: 0;
|
||||
max-width: 280px;
|
||||
margin-right: 0;
|
||||
padding-right: 18px;
|
||||
border-right: 1px solid var(--console-line);
|
||||
}
|
||||
|
||||
.topbar-nav {
|
||||
width: auto;
|
||||
max-width: none;
|
||||
justify-self: center;
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
overflow: visible;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.topbar-nav a,
|
||||
.topbar-nav-item {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.topbar-right {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.topbar-right > * {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.topbar-user-trigger {
|
||||
min-width: 154px;
|
||||
max-width: 196px;
|
||||
}
|
||||
|
||||
@media (max-width: 1260px) {
|
||||
.topbar {
|
||||
grid-template-columns: minmax(170px, 220px) minmax(280px, max-content) minmax(220px, 1fr);
|
||||
column-gap: 12px;
|
||||
}
|
||||
|
||||
.topbar-logo {
|
||||
max-width: 220px;
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
.topbar-logo-subtitle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.topbar-search-trigger {
|
||||
min-width: 42px;
|
||||
width: 42px;
|
||||
padding-inline: 0;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.topbar-search-trigger .topbar-search-label,
|
||||
.topbar-search-trigger .topbar-search-kbd {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.topbar {
|
||||
grid-template-columns: minmax(126px, auto) minmax(230px, 360px) minmax(248px, 1fr);
|
||||
grid-template-columns: minmax(150px, 190px) minmax(240px, max-content) minmax(150px, 1fr);
|
||||
gap: 10px;
|
||||
padding-inline: 16px;
|
||||
}
|
||||
@@ -13399,8 +13476,8 @@ textarea:focus {
|
||||
}
|
||||
|
||||
.topbar-nav {
|
||||
width: min(360px, 100%);
|
||||
max-width: 360px;
|
||||
width: auto;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.topbar-nav a,
|
||||
|
||||
Reference in New Issue
Block a user