From 784dcffbc6f584677a4657a91c836cf47c4ce4d7 Mon Sep 17 00:00:00 2001 From: David Mosbach Date: Mon, 6 May 2024 03:54:31 +0000 Subject: [PATCH] Revert "chore(icons): adjusted icon sizes" This reverts commit b52da06129758ed66efc88d717aea615d2148de3. --- frontend/src/icons.scss | 6 +++--- src/Utils/Icon.hs | 8 +------- templates/widgets/navbar/navbar.hamlet | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/frontend/src/icons.scss b/frontend/src/icons.scss index 5260dca33..bb9ddd73f 100644 --- a/frontend/src/icons.scss +++ b/frontend/src/icons.scss @@ -15,8 +15,6 @@ $icons: ok, background-repeat: no-repeat; background-position: center; aspect-ratio: 1/1; - min-width: 1em; - font-size: inherit; display: inline-block; filter: invert(22%) sepia(84%) saturate(7448%) hue-rotate(357deg) brightness(102%) contrast(116%); } @@ -24,13 +22,15 @@ $icons: ok, .small-ico { font-size: 1em; + width: 1em; } .medium-ico { font-size: 1.5em; + width: 1.5em; } .large-ico { font-size: 2em; + width: 2em; } - diff --git a/src/Utils/Icon.hs b/src/Utils/Icon.hs index e246d3b6d..f7ebe0ee0 100644 --- a/src/Utils/Icon.hs +++ b/src/Utils/Icon.hs @@ -260,13 +260,7 @@ iconStacked ic0 ic1 -} iconStacked :: Icon -> Icon -> Markup -iconStacked ic0 ic1 - = [shamlet| - $newline never - - - - |] +iconStacked i _ = icon i -- TODO -- Create an icon (defaults to "?") with a specified tooltip; inline-bool just affects the size of the icon iconTooltip :: forall site. WidgetFor site () -> Maybe Icon -> Bool -> WidgetFor site () diff --git a/templates/widgets/navbar/navbar.hamlet b/templates/widgets/navbar/navbar.hamlet index 2d56ee404..b6050413d 100644 --- a/templates/widgets/navbar/navbar.hamlet +++ b/templates/widgets/navbar/navbar.hamlet @@ -46,7 +46,7 @@ $# SPDX-License-Identifier: AGPL-3.0-or-later $forall n@(NavHeaderContainer{ navHeaderRole }, containerIdent, _, ns) <- filter isNavHeaderContainer nav