From 18ea1894b70d0ea6a67fc05d33fba78a677b8b18 Mon Sep 17 00:00:00 2001 From: Giuseppe Criscione <18699708+giuscris@users.noreply.github.com> Date: Sat, 19 Oct 2024 23:13:43 +0200 Subject: [PATCH] Fix icons positioning --- panel/src/scss/components/_buttons.scss | 2 ++ panel/src/scss/components/_icon.scss | 2 +- panel/src/scss/components/_tooltip.scss | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/panel/src/scss/components/_buttons.scss b/panel/src/scss/components/_buttons.scss index a84da3dd..8f7ab602 100644 --- a/panel/src/scss/components/_buttons.scss +++ b/panel/src/scss/components/_buttons.scss @@ -40,6 +40,7 @@ & .icon { display: inline-block; margin-right: 0.25rem; + vertical-align: text-top; } } @@ -132,6 +133,7 @@ .button-link { & .icon { margin-right: 0; + vertical-align: -0.125rem; } } diff --git a/panel/src/scss/components/_icon.scss b/panel/src/scss/components/_icon.scss index 3614f023..2a70cd0a 100644 --- a/panel/src/scss/components/_icon.scss +++ b/panel/src/scss/components/_icon.scss @@ -4,5 +4,5 @@ min-width: 16px; height: 1em; min-height: 16px; - vertical-align: -0.125rem; + vertical-align: -0.125em; } diff --git a/panel/src/scss/components/_tooltip.scss b/panel/src/scss/components/_tooltip.scss index c6f6c490..e012b174 100644 --- a/panel/src/scss/components/_tooltip.scss +++ b/panel/src/scss/components/_tooltip.scss @@ -13,6 +13,6 @@ } .tooltip .icon { - transform: scale(0.75); - vertical-align: -0.25rem; + min-width: auto; + min-height: auto; }