Skip to content

A self-hosted media server and file management system

feat: animate dirty flag on titles

aminnausinfac0afbf04dc
diff --git a/resources/js/components/config/ConfigHeader.vue b/resources/js/components/config/ConfigHeader.vue
index 59f0b507..bb2eae95 100644
--- a/resources/js/components/config/ConfigHeader.vue
+++ b/resources/js/components/config/ConfigHeader.vue
@@ -6,7 +6,10 @@ defineProps<{ heading: string; subtext?: string; dirty?: boolean }>();
<template>
<SettingsHeader class="block max-w-none">
- <h3 class="3xl:text-xl text-base font-medium">{{ heading }} <span v-if="dirty" class="text-danger"> *</span></h3>
+ <h3 class="3xl:text-xl text-base font-medium">
+ {{ heading }}
+ <span :class="['transition-input text-danger transition-reveal overflow-hidden duration-75', dirty ? 'w-0 ps-1 opacity-100' : 'w-0 ps-0 opacity-0']">*</span>
+ </h3>
<p class="text-foreground-2">
<slot>{{ subtext }}</slot>
</p>