mirror of
https://github.com/plexguide/Huntarr.git
synced 2026-01-05 10:40:18 -06:00
update
This commit is contained in:
102
frontend/static/css/responsive-fix.css
Normal file
102
frontend/static/css/responsive-fix.css
Normal file
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,7 @@
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||||
<link rel="icon" href="/static/logo/16.png">
|
||||
<link rel="stylesheet" href="/static/css/apps-double-scroll-fix.css">
|
||||
<link rel="stylesheet" href="/static/css/responsive-fix.css">
|
||||
<!-- Better logo visibility handling -->
|
||||
<style>
|
||||
.logo, .login-logo {
|
||||
|
||||
Reference in New Issue
Block a user