feat(mobile): responsive Phase 1+2 — global small-phone rules + area fixes
All changes are mobile-only (max-width media queries); desktop unchanged. Global (systemic): - forms.css: all .admin-form-row* grids stack to 1 column at <=480px (fixes detail-page info grids, settings forms, modal forms staying 2-up on phones). - components.css: .admin-kpi-4/-3 stat grids collapse to 1 column at <=480px. - tables.css: row-action icons get 44px touch targets at <=768px. - datepicker.css: constrain the date-picker popper to the viewport at <=480px. - filemanager.css: toolbar wraps, new-folder input full-width, breadcrumb scrolls. Area specifics: - offers.css: Quill picker dropdowns kept on-screen (max-width) at <=480px. - invoices.css: month-nav wraps + 44px touch targets at <=640px. - attendance.css: Leaflet map height scales with viewport; clock-card padding tightened at <=480px. Audit confirmed all data tables (warehouse incl.) are already wrapped in the scroll container, so no table overflow/markup changes were needed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -197,3 +197,15 @@
|
||||
.react-datepicker__close-icon::after {
|
||||
background-color: var(--accent-color) !important;
|
||||
}
|
||||
|
||||
/* Mobile safety net — keep the popper inside the viewport on small phones.
|
||||
(Native date input is used on touch; this guards the rare desktop-style popper.) */
|
||||
@media (max-width: 480px) {
|
||||
.react-datepicker-popper {
|
||||
max-width: calc(100vw - 24px);
|
||||
}
|
||||
|
||||
.react-datepicker {
|
||||
font-size: 0.8rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user