Skip to content

Commit ce9b3ab

Browse files
authored
Merge pull request unraid#2330 from unraid/fix/footer-copyright-on-right
fix: footer layout and styles for improved responsiveness
2 parents 7228b4d + 58e8dc8 commit ce9b3ab

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

emhttp/plugins/dynamix/include/DefaultPageLayout/Footer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ function getArrayStatus($var) {
5656
</span>
5757
<span id="user-notice" class="red-text"></span>
5858
</div>
59+
<div class="footer-spacer">&nbsp;</div>
5960
<div id="copyright" class="footer-right">
6061
<unraid-theme-switcher
6162
current="<?=$theme?>"

emhttp/plugins/dynamix/styles/default-base.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,8 @@ div.title span img {
675675

676676
@media (min-width: 768px) {
677677
#footer {
678-
flex-direction: row;
679-
justify-content: space-between;
678+
display: grid;
679+
grid-template-columns: auto 1fr auto;
680680
align-items: center;
681681
position: fixed;
682682
bottom: 0;
@@ -702,7 +702,9 @@ div.title span img {
702702
justify-content: center;
703703
align-items: center;
704704
gap: 1rem;
705-
flex: 1 1 auto; /* Take available space */
705+
}
706+
.footer-spacer {
707+
display: none; /* Hidden by default on mobile */
706708
}
707709
.footer-right,
708710
#copyright {
@@ -734,13 +736,14 @@ div.title span img {
734736
@media (min-width: 768px) {
735737
.footer-left {
736738
justify-content: flex-start;
737-
flex: 0 0 auto; /* Only take needed space on desktop */
739+
}
740+
.footer-spacer {
741+
display: block; /* Show on desktop */
738742
}
739743
.footer-right,
740744
#copyright {
741745
text-align: right;
742746
justify-content: flex-start; /* Start from left to enable overflow */
743-
flex: 1 1 0; /* Take remaining space */
744747
width: auto; /* Override mobile full width */
745748
min-width: 0; /* Critical for overflow to work */
746749
}

0 commit comments

Comments
 (0)