fix: top align mobile content
This commit is contained in:
@@ -770,12 +770,14 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
|
||||
|
||||
.empty-state {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
min-height: 88px;
|
||||
place-content: center;
|
||||
gap: 5px;
|
||||
min-height: 52px;
|
||||
align-content: start;
|
||||
justify-items: start;
|
||||
padding: 9px;
|
||||
border: 1px dashed var(--line);
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
text-align: left;
|
||||
}
|
||||
.empty-state strong { color: var(--text); }
|
||||
.muted { color: var(--muted); }
|
||||
@@ -851,7 +853,11 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
|
||||
|
||||
@media (max-width: 760px) {
|
||||
body { font-size: 12px; }
|
||||
.shell { grid-template-columns: 1fr; }
|
||||
.shell {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
align-content: start;
|
||||
}
|
||||
.rail {
|
||||
position: static;
|
||||
height: 42px;
|
||||
@@ -893,8 +899,37 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
|
||||
.module-code { font-size: 9px; letter-spacing: 0.08em; }
|
||||
.module.active, .module:hover { border-bottom-color: var(--accent); }
|
||||
.workspace { padding: 10px; }
|
||||
.topbar { align-items: flex-start; flex-direction: column; }
|
||||
.status-strip { flex-wrap: wrap; white-space: normal; }
|
||||
.topbar {
|
||||
min-height: 36px;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
padding-bottom: 6px;
|
||||
}
|
||||
.topbar > div:first-child {
|
||||
min-width: 0;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.topbar .eyebrow { display: none; }
|
||||
.topbar h1 {
|
||||
font-size: 14px;
|
||||
letter-spacing: 0.05em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.status-strip {
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
justify-content: flex-end;
|
||||
gap: 5px;
|
||||
padding: 3px 4px;
|
||||
overflow-x: auto;
|
||||
flex-wrap: nowrap;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.status-strip span:not(.dot):not([data-testid="conn-text"]):not(.user-pill) { display: none; }
|
||||
.status-strip .ghost-btn {
|
||||
min-height: 24px;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
.tabs {
|
||||
height: 38px;
|
||||
align-items: center;
|
||||
|
||||
@@ -1014,6 +1014,10 @@ function Shell({ session, onLogout }: AnyRecord) {
|
||||
return () => clearInterval(timer);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
||||
}, [activeModule, activeTab]);
|
||||
|
||||
function setTab(tab: string): void {
|
||||
setActiveTabs((prev: any) => ({ ...prev, [activeModule]: tab }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user