From 0ba5a9d7372d80c7f31ddf14d1805de64dc631c7 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 15 Feb 2022 12:17:16 +0100 Subject: Better indicator size handling --- tpl/objects/action-menu.pug | 2 +- tpl/objects/menu.pug | 2 +- tpl/objects/status-indicator.pug | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'tpl/objects') diff --git a/tpl/objects/action-menu.pug b/tpl/objects/action-menu.pug index b856df8..751e29d 100644 --- a/tpl/objects/action-menu.pug +++ b/tpl/objects/action-menu.pug @@ -11,7 +11,7 @@ mixin action-menu-item .l-card__block.o-action-menu__icon-slot if attributes.icon if attributes.iconIsStatus - +status-indicator(attributes.icon)(size=125 class='o-action-menu__icon') + +status-indicator(attributes.icon)(class='o-action-menu__icon') else +icon(attributes.icon)(class='o-action-menu__icon') .l-card__block.l-card__block--main diff --git a/tpl/objects/menu.pug b/tpl/objects/menu.pug index e4180b8..0a654ce 100644 --- a/tpl/objects/menu.pug +++ b/tpl/objects/menu.pug @@ -18,7 +18,7 @@ mixin menu-item if attributes.icon .l-card__block.o-menu__icon-slot if attributes.iconIsStatus - +status-indicator(attributes.icon)(size=125 class='o-menu__icon') + +status-indicator(attributes.icon)(class='o-menu__icon') else +icon(attributes.icon)(class='o-menu__icon') .l-card__block.l-card__block--main&attributes({ class: attributes.contentClass }) diff --git a/tpl/objects/status-indicator.pug b/tpl/objects/status-indicator.pug index 850348d..7ecb08a 100644 --- a/tpl/objects/status-indicator.pug +++ b/tpl/objects/status-indicator.pug @@ -1,9 +1,7 @@ mixin status-indicator(status) - - let size = attributes.size || 100; let classes = { - 'o-status-indicator': true, - ['o-status-indicator--' + size]: true, + 'o-status-indicator': true, } classes['is-' + status] = true if (attributes.class) { -- cgit v1.2.3-70-g09d2