commit: 39eee4412fc6af675c019c829216031e66f74d04
parent 528e7e44967f97121b7e327f66df94ff4ea7931b
Author: Henry Jameson <me@hjkos.com>
Date: Wed, 28 Feb 2024 14:25:22 +0200
fix alerts in panels
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/components/settings_modal/settings_modal.vue b/src/components/settings_modal/settings_modal.vue
@@ -14,7 +14,7 @@
<div
v-if="currentSaveStateNotice"
class="alert"
- :class="{ transparent: !currentSaveStateNotice.error, error: currentSaveStateNotice.error}"
+ :class="{ success: !currentSaveStateNotice.error, error: currentSaveStateNotice.error}"
@click.prevent
>
{{ currentSaveStateNotice.error ? $t('settings.saving_err') : $t('settings.saving_ok') }}
diff --git a/src/panel.scss b/src/panel.scss
@@ -118,6 +118,10 @@
padding-bottom: 0;
align-self: stretch;
}
+
+ > .alert {
+ line-height: calc(var(--__panel-heading-height-inner) - 2px);
+ }
}
}