From 1eb9541b79b2ef47915826991a6db8cfb4f84319 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 10 Dec 2024 10:32:36 +0100 Subject: [PATCH] Prevent icon layout shift --- .../shared-icons/global-icon.component.scss | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/client/src/app/shared/shared-icons/global-icon.component.scss b/client/src/app/shared/shared-icons/global-icon.component.scss index 0cbe36dc0..03a524808 100644 --- a/client/src/app/shared/shared-icons/global-icon.component.scss +++ b/client/src/app/shared/shared-icons/global-icon.component.scss @@ -1,12 +1,17 @@ -:host ::ng-deep { - svg { - vertical-align: bottom; - width: inherit; - height: inherit; - } +:host { + display: inline-block; + height: 24px; + width: 24px; - .feather-flag { - margin-left: -1px; + ::ng-deep { + svg { + vertical-align: bottom; + width: inherit; + height: inherit; + } + + .feather-flag { + margin-left: -1px; + } } } -