fix(gui): logo placement with no clock using margin
Docker Image CI / build-and-push-image (push) Waiting to run
Maintain Release Merge PR / update-release-pr (push) Waiting to run
release-please / release-please (push) Waiting to run
test / test (18.x) (push) Waiting to run
test / test (20.x) (push) Waiting to run
test / test (22.x) (push) Waiting to run

Flex isn't being used in the top bar correctly, which is causing
unpredictable issues when people implement new elements on the top bar.
The best solution for this is to use proper flex values but right now
it's important to get the layout back to normal for production so I'm
implementing this sub-par fix where we always include a spacer element.
This commit is contained in:
KernelDeimos
2025-03-14 03:09:08 -04:00
parent 8edcf7575d
commit 5c50eb1f8b
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -1108,6 +1108,9 @@ async function UIDesktop(options){
//clock
ht += `<div id="clock" class="toolbar-clock" style="margin-left: 10px; margin-right: auto">12:00 AM Sun, Jan 01</div>`;
// clock spacer
ht += `<div class="toolbar-spacer"></div>`;
// create account button
ht += `<div class="toolbar-btn user-options-create-account-btn ${window.user.is_temp ? '' : 'hidden' }" style="padding:0; opacity:1;" title="Save Account">`;
+4
View File
@@ -2413,6 +2413,10 @@ label {
opacity: 0.8;
}
.toolbar-spacer {
margin-right: auto;
}
.device-phone #clock {
display: none !important;
}