From c904f8fbfe38b3d3a878f717dd1cf13219f94219 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 2 Dec 2024 08:41:05 +0100 Subject: [PATCH] Prevent header layout shift --- client/src/app/header/header.component.html | 6 +++--- client/src/app/header/header.component.scss | 1 + client/src/app/header/header.component.ts | 8 ++++---- client/src/sass/include/_button-mixins.scss | 6 ++---- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/client/src/app/header/header.component.html b/client/src/app/header/header.component.html index 78ef68503..1137c203e 100644 --- a/client/src/app/header/header.component.html +++ b/client/src/app/header/header.component.html @@ -1,13 +1,13 @@ -
+
{{ instanceName }} - + -
+
@if (!loggedIn) { this.openQuickSettings()) - - this.loaded = true } ngOnDestroy () { diff --git a/client/src/sass/include/_button-mixins.scss b/client/src/sass/include/_button-mixins.scss index 40b5381a5..2cec73288 100644 --- a/client/src/sass/include/_button-mixins.scss +++ b/client/src/sass/include/_button-mixins.scss @@ -205,12 +205,10 @@ @mixin button-with-icon($width: 20px, $margin-right: 3px, $top: -1px, $right: 0) { my-global-icon { position: relative; - display: inline-block; - width: $width; - height: $width; - line-height: $width; top: $top; right: $right; + + @include global-icon-size($width); } &:not(.icon-only) {