diff --git a/frontend/static/css/responsive-fix.css b/frontend/static/css/responsive-fix.css new file mode 100644 index 00000000..32ff68ef --- /dev/null +++ b/frontend/static/css/responsive-fix.css @@ -0,0 +1,102 @@ +/* + * Fix responsive design issues in the Settings section + * Ensures proper transitions between desktop and mobile layouts + */ + +/* Improve header consistency across viewport sizes */ +.section-header { + display: flex !important; + justify-content: space-between !important; + align-items: center !important; + flex-wrap: wrap !important; + background-color: #252a34 !important; + border-radius: 8px !important; + padding: 15px 20px !important; + margin-bottom: 20px !important; + min-height: 60px !important; + max-height: 60px !important; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important; + border-bottom: none !important; +} + +/* Better handling of the Save button in the settings header */ +.settings-actions { + margin-left: auto; +} + +/* Additional breakpoint for medium-sized screens */ +@media (max-width: 992px) { + /* Force mobile mode at this breakpoint for consistency */ + .sidebar { + width: 60px !important; + min-width: 60px !important; + max-width: 60px !important; + } + + .main-content { + margin-left: 0 !important; + width: calc(100% - 60px) !important; + } + + /* Navbar item adjustments */ + .nav-item { + padding: 10px 0; + justify-content: center; + } + + .nav-item span { + display: none !important; + } + + .nav-icon-wrapper { + margin-right: 0 !important; + } + + /* Ensure General Settings header is responsive */ + #settingsSection .section-header { + flex-wrap: wrap !important; + } + + /* Move Save button to its own row when space is limited */ + #settingsSection .settings-actions { + margin-top: 10px; + width: 100%; + display: flex; + justify-content: flex-end; + } + + /* Fix the positioning of the Save button on narrow screens */ + #saveSettingsButton { + position: relative !important; + top: auto !important; + right: auto !important; + } +} + +/* Mobile-specific settings adjustments */ +@media (max-width: 768px) { + /* Fix General Settings section header on mobile */ + #settingsSection .section-header { + padding: 10px 15px !important; + min-height: 0 !important; + max-height: none !important; + flex-direction: column; + align-items: flex-start !important; + } + + #settingsSection .section-header h2 { + margin-bottom: 10px; + } + + /* Save button positioning for mobile */ + #settingsSection .settings-actions { + margin-top: 10px; + width: 100%; + } + + #saveSettingsButton { + width: 100%; + text-align: center; + justify-content: center; + } +} diff --git a/frontend/templates/components/head.html b/frontend/templates/components/head.html index 6955747a..c5dd7453 100644 --- a/frontend/templates/components/head.html +++ b/frontend/templates/components/head.html @@ -8,6 +8,7 @@ +