feat: optimize hub mobile layout with chat-first AI coach tabs
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2351,35 +2351,269 @@ body.login-page {
|
||||
padding: 14px 0;
|
||||
}
|
||||
|
||||
.brand-sub {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.app-header {
|
||||
padding: 10px 0;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.header-right {
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 10px;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto auto;
|
||||
grid-template-rows: auto auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.header-right .theme-toggle {
|
||||
grid-column: 1;
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.sys-pill {
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.top-nav {
|
||||
width: 100%;
|
||||
justify-content: stretch;
|
||||
}
|
||||
|
||||
.top-nav a {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
padding: 10px 12px;
|
||||
min-height: 44px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
grid-column: 2;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
button.ghost#btn-logout {
|
||||
grid-column: 3;
|
||||
width: auto;
|
||||
min-height: 36px;
|
||||
padding: 6px 12px;
|
||||
justify-self: end;
|
||||
}
|
||||
|
||||
.top-nav {
|
||||
grid-column: 1 / -1;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
gap: 6px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.top-nav::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.top-nav a {
|
||||
flex: 0 0 auto;
|
||||
text-align: center;
|
||||
padding: 8px 14px;
|
||||
min-height: 40px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.page-desc {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.market-toolbar {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px;
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
.market-field {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.market-field select,
|
||||
.market-field input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.market-field-symbol {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.market-toolbar .toolbar-spacer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.market-toolbar #market-load {
|
||||
grid-column: 1;
|
||||
}
|
||||
|
||||
.market-toolbar #market-refresh {
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.market-toolbar .toolbar-meta {
|
||||
grid-column: 1 / -1;
|
||||
text-align: left;
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
|
||||
.market-chart-wrap {
|
||||
min-height: 260px;
|
||||
height: min(52vh, 420px);
|
||||
}
|
||||
|
||||
.archive-toolbar {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.archive-toolbar .archive-field {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.archive-toolbar .chk-label {
|
||||
margin: 0;
|
||||
min-height: 36px;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.archive-toolbar #archive-btn-refresh {
|
||||
grid-column: 1;
|
||||
}
|
||||
|
||||
.archive-toolbar #archive-btn-sync {
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.archive-toolbar .toolbar-meta {
|
||||
grid-column: 1 / -1;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
body.hub-page-ai .page-head {
|
||||
margin: 4px 0 6px;
|
||||
}
|
||||
|
||||
body.hub-page-ai .page-head h1 {
|
||||
margin: 0;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.ai-mobile-tabs {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ai-mobile-tab {
|
||||
flex: 1;
|
||||
min-height: 40px;
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-soft);
|
||||
background: var(--inset-surface);
|
||||
color: var(--muted);
|
||||
font-family: var(--font);
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ai-mobile-tab.is-active {
|
||||
color: var(--text);
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-dim);
|
||||
box-shadow: var(--glow);
|
||||
}
|
||||
|
||||
body.hub-page-ai .app-shell {
|
||||
padding-bottom: max(8px, env(safe-area-inset-bottom));
|
||||
height: 100dvh;
|
||||
max-height: 100dvh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body.hub-page-ai {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body.hub-page-ai #page-ai {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ai-layout {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: minmax(0, 1fr);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ai-layout[data-ai-mobile-tab="chat"] .ai-summary-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ai-layout[data-ai-mobile-tab="summary"] .ai-chat-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ai-layout[data-ai-mobile-tab="chat"] .ai-chat-panel,
|
||||
.ai-layout[data-ai-mobile-tab="summary"] .ai-summary-panel {
|
||||
display: flex;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.ai-chat-panel {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.ai-chat-messages {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.ai-chat-form {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
z-index: 3;
|
||||
margin: 0 -14px;
|
||||
padding: 10px 14px max(10px, env(safe-area-inset-bottom));
|
||||
background: color-mix(in srgb, var(--panel) 92%, transparent);
|
||||
backdrop-filter: blur(10px);
|
||||
border-top: 1px solid var(--border-soft);
|
||||
box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.28);
|
||||
}
|
||||
|
||||
.ai-chat-form textarea {
|
||||
min-height: 44px;
|
||||
max-height: 120px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.ai-chat-compose-actions {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.ai-chat-upload-btn,
|
||||
#btn-ai-chat-send {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
#btn-ai-chat-send {
|
||||
min-width: 76px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.ai-msg-row-user {
|
||||
max-width: 92%;
|
||||
}
|
||||
|
||||
.ai-msg-row-coach {
|
||||
max-width: 96%;
|
||||
}
|
||||
|
||||
.page-head {
|
||||
@@ -3688,23 +3922,8 @@ body.hub-page-ai #page-ai {
|
||||
align-items: stretch;
|
||||
overflow: hidden;
|
||||
}
|
||||
@media (max-width: 960px) {
|
||||
body.hub-page-ai .app-shell {
|
||||
height: auto;
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
}
|
||||
body.hub-page-ai {
|
||||
overflow: auto;
|
||||
}
|
||||
body.hub-page-ai #page-ai {
|
||||
overflow: visible;
|
||||
}
|
||||
.ai-layout {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: minmax(280px, 42vh) minmax(280px, 42vh);
|
||||
overflow: visible;
|
||||
}
|
||||
.ai-mobile-tabs {
|
||||
display: none;
|
||||
}
|
||||
.ai-panel {
|
||||
background: var(--panel);
|
||||
|
||||
Reference in New Issue
Block a user