From 1d7a2f634492f5b4c0b648324d66471a3f48361d Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Tue, 6 May 2025 15:40:23 -0700 Subject: [PATCH 01/21] fix: update header styles and layout in default-base.css - Corrected position property from 'absolute' to 'relative' for #header. - Added flexbox properties to #header for better alignment and spacing. - Introduced new styles for unraid-i18n-host and Downgrade icon rotation. - Adjusted #menu position to 'sticky' for improved usability. This change enhances the layout and responsiveness of the header and menu elements. --- .../plugins/dynamix/styles/default-base.css | 45 +++++++++++++++---- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/emhttp/plugins/dynamix/styles/default-base.css b/emhttp/plugins/dynamix/styles/default-base.css index 2b8c91faf..7b5679fe5 100644 --- a/emhttp/plugins/dynamix/styles/default-base.css +++ b/emhttp/plugins/dynamix/styles/default-base.css @@ -358,9 +358,17 @@ textarea { border-bottom: 1px solid var(--input-border-color); } #header { - position: absolute; - top: 0; - left: 0; + position: relaitve; + z-index: 102 !important; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -ms-flex-pack: justify; + justify-content: space-between; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; width: 100%; height: 91px; z-index: 102; @@ -371,6 +379,27 @@ textarea { background-repeat: no-repeat; } +#header unraid-i18n-host { + font-size: 16px; + margin-left: auto; + height: 100%; +} + +/** + * Tools page, rotate the Downgrade icon to prevent needing to add a new icon to the icon font. + * The pseudo element is targeted here otherwise the rotation of the span would mess up spacing with the text. + */ +a[href="/Tools/Downgrade"] .icon-update:before { + display: inline-block; /* required otherwise the rotation won't work */ + rotate: 180deg; +} +/* overriding #header .logo svg */ +#header .logo .partner-logo svg { + fill: var(--header-text-primary); + width: auto; + height: 28px; +} + #header.image { /* .image is conditionally added by DefaultPageLayout.php */ background-image: var(--customer-header-background-image); } @@ -436,10 +465,9 @@ div.title.shift { margin-top: -30px; } #menu { - position: absolute; - top: 90px; - left: 0; - right: 0; + position: sticky; + top: 0; + width: 100%; display: grid; grid-template-columns: auto max-content; z-index: 101; @@ -1708,8 +1736,7 @@ span#wlan0 { } #header { - position: fixed; - height: 90px; + position: relative; z-index: 100; border-bottom: 1px solid var(--gray-600); box-sizing: border-box; From 2401c2b8d360c7920bd7a720abc2c01d2b260400 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Tue, 6 May 2025 15:41:20 -0700 Subject: [PATCH 02/21] chore: remove unused CSS styles from myservers1.php - Deleted obsolete styles related to the header and Downgrade icon rotation. - Cleaned up the file to improve maintainability and reduce clutter. --- .../dynamix.my.servers/include/myservers1.php | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/emhttp/plugins/dynamix.my.servers/include/myservers1.php b/emhttp/plugins/dynamix.my.servers/include/myservers1.php index b9cfc44ff..d8de6b2eb 100644 --- a/emhttp/plugins/dynamix.my.servers/include/myservers1.php +++ b/emhttp/plugins/dynamix.my.servers/include/myservers1.php @@ -9,40 +9,6 @@ * all copies or substantial portions of the Software. */ ?> - Date: Tue, 6 May 2025 15:54:52 -0700 Subject: [PATCH 03/21] refactor: update footer layout and styles for improved responsiveness - Restructured footer HTML to use flexbox for better alignment and spacing. - Adjusted CSS styles for #footer, including padding and box-sizing. - Removed unnecessary float properties and improved layout consistency. --- .../DefaultPageLayout/BodyInlineJS.php | 2 - .../include/DefaultPageLayout/Footer.php | 57 +++++++++++-------- .../plugins/dynamix/styles/default-base.css | 28 +++++---- 3 files changed, 50 insertions(+), 37 deletions(-) diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout/BodyInlineJS.php b/emhttp/plugins/dynamix/include/DefaultPageLayout/BodyInlineJS.php index 5b9359601..a6150fb43 100644 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout/BodyInlineJS.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout/BodyInlineJS.php @@ -234,8 +234,6 @@ $(window).scroll(function() { $('.back_to_top').fadeOut(scrollDuration); } isTopNavTheme()):?> - var top = $('div#header').height()-1; // header height has 1 extra pixel to cover overlap - $('div#menu').css($(this).scrollTop() > top ? {position:'fixed',top:'0'} : {position:'absolute',top:top+'px'}); // banner $('div.upgrade_notice').css($(this).scrollTop() > 24 ? {position:'fixed',top:'0'} : {position:'absolute',top:'24px'}); diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout/Footer.php b/emhttp/plugins/dynamix/include/DefaultPageLayout/Footer.php index 80909394b..ea762b60b 100644 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout/Footer.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout/Footer.php @@ -42,31 +42,40 @@ function getArrayStatus($var) { ?>
- - - - - + +
diff --git a/emhttp/plugins/dynamix/styles/default-base.css b/emhttp/plugins/dynamix/styles/default-base.css index 7b5679fe5..ed9b70249 100644 --- a/emhttp/plugins/dynamix/styles/default-base.css +++ b/emhttp/plugins/dynamix/styles/default-base.css @@ -564,30 +564,38 @@ div.title.shift { clear: both; } #footer { + box-sizing: border-box; position: fixed; bottom: 0; left: 0; color: var(--footer-text); background-color: var(--footer-background-color); - padding: 5px 0; + padding: .5rem 1rem; width: 100%; - height: 1.6rem; - line-height: 1.6rem; text-align: center; z-index: 10000; -} -#statusraid { - float: left; - padding-left: 10px; + display: flex; + justify-content: space-between; + align-items: center; + gap: 1rem; } #countdown { margin: 0 auto; } +.footer-right { + display: flex; + justify-content: space-between; + align-items: center; + gap: 1rem; +} +.footer-link { + display: inline-flex; + align-items: center; + gap: 0.5rem; +} #copyright { font-family: bitstream; font-size: 1.1rem; - float: right; - padding-right: 10px; } .green { color: var(--green-800); @@ -1537,8 +1545,6 @@ pre#swalbody p { margin-block-end: 1em; } span#wlan0 { - float: right; - margin-right: 10px; cursor: pointer; } From 5c8d920269086e8b8eec5971ff571401d18ad2bd Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Tue, 6 May 2025 16:24:25 -0700 Subject: [PATCH 04/21] style: update padding in DashStats.css and default-base.css for improved layout - Changed padding-top and padding-bottom in DashStats.css from fixed values to rem units for better responsiveness. - Removed margin from div.tabs in default-base.css to enhance layout consistency. --- emhttp/plugins/dynamix/sheets/DashStats.css | 4 ++-- emhttp/plugins/dynamix/styles/default-base.css | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/emhttp/plugins/dynamix/sheets/DashStats.css b/emhttp/plugins/dynamix/sheets/DashStats.css index cc9b69027..2ce63b5c3 100644 --- a/emhttp/plugins/dynamix/sheets/DashStats.css +++ b/emhttp/plugins/dynamix/sheets/DashStats.css @@ -12,8 +12,8 @@ } div.frame { - padding-top: 14px; - padding-bottom: 160px; + padding-top: 1rem; + padding-bottom: 5rem; } div.tile, i.tile { diff --git a/emhttp/plugins/dynamix/styles/default-base.css b/emhttp/plugins/dynamix/styles/default-base.css index ed9b70249..12f2d2758 100644 --- a/emhttp/plugins/dynamix/styles/default-base.css +++ b/emhttp/plugins/dynamix/styles/default-base.css @@ -1172,7 +1172,6 @@ label + .content { } div.tabs { position: relative; - margin: 120px 0 0 0; } div.tab { float: left; @@ -2108,7 +2107,6 @@ span#wlan0 { } div.tabs { - margin: 110px 20px 30px 90px; background-color: var(--background-color); } From 8379c02192a366499cb703a2ac0b35c7354f37d6 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Tue, 6 May 2025 17:11:43 -0700 Subject: [PATCH 05/21] fix: jquery.ui.css reference --- emhttp/plugins/dynamix/include/DefaultPageLayout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout.php b/emhttp/plugins/dynamix/include/DefaultPageLayout.php index 3c5c350ad..f31560a42 100644 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout.php @@ -94,7 +94,7 @@ if (count($pages)) { "> "> "> -"> +"> ">