refactor(dashboard): extract component-specific mobile rules from styles.css
Sweep 1 of the styles.css split. Rules where the desktop counterpart already lived in a component CSS file have been moved out of the global mobile @media block in styles.css and appended to the matching component file's mobile block. styles.css 4551 → 4488. Affected components: Header, AgentsView, DocumentsView, ListView, QuickChatFAB, QuickEntryBox, ScriptsModal, TaskDetailModal, TerminalModal, WorkflowResultsTab. Truly global mobile rules (input font-size for iOS auto-zoom, html/body overflow, root safe-area padding, base .btn touch targets, bare element selectors) intentionally stay in styles.css. The remaining bulk of the mobile block (settings, auth, board/card, inline-create) cannot move yet because their desktop rules are still in styles.css — those will fall out as part of the cards and settings extraction sweeps. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -843,6 +843,47 @@
|
||||
min-width: unset;
|
||||
min-height: unset;
|
||||
}
|
||||
|
||||
/* Touch targets for header controls */
|
||||
.view-toggle-btn,
|
||||
.header-search-clear {
|
||||
min-width: 36px;
|
||||
min-height: 36px;
|
||||
}
|
||||
|
||||
/* Overflow menu and overflow split-toggle touch targets */
|
||||
.mobile-overflow-item,
|
||||
.mobile-overflow-split-toggle {
|
||||
min-height: 36px;
|
||||
}
|
||||
|
||||
/* Mobile header: collapsible search trigger */
|
||||
.mobile-search-trigger {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* Mobile search expanded — inside header-floating-search container */
|
||||
.mobile-search-expanded {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Mobile: compact node label, no dropdown */
|
||||
.header-node-selector--mobile {
|
||||
margin-right: var(--space-xs);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.header-node-selector--mobile .node-status-indicator {
|
||||
font-size: 11px;
|
||||
padding: 2px var(--space-xs);
|
||||
}
|
||||
|
||||
.header-node-selector--mobile .node-status-indicator__name {
|
||||
max-width: 80px;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 769px) and (max-width: 1024px) {
|
||||
|
||||
Reference in New Issue
Block a user