mirror of
https://github.com/unraid/api.git
synced 2026-01-04 23:50:37 -06:00
refactor(web): modal footer visibility
This commit is contained in:
@@ -111,12 +111,23 @@ const ariaLablledById = computed((): string|undefined => props.title ? `ModalTit
|
||||
</header>
|
||||
<slot name="main" />
|
||||
|
||||
<footer v-if="$slots['footer']" class="text-14px relative -mx-16px -mb-16px sm:-mx-24px sm:-mb-24px p-4 sm:p-6">
|
||||
<div class="absolute z-0 inset-0 opacity-10 bg-beta" />
|
||||
<div class="relative z-10">
|
||||
<slot name="footer" />
|
||||
</div>
|
||||
</footer>
|
||||
<TransitionChild
|
||||
appear
|
||||
as="template"
|
||||
enter="duration-300 ease-out"
|
||||
enter-from="opacity-0"
|
||||
enter-to="opacity-100"
|
||||
leave="duration-200 ease-in"
|
||||
leave-from="opacity-100"
|
||||
leave-to="opacity-0"
|
||||
>
|
||||
<footer v-if="$slots['footer']" class="text-14px relative -mx-16px -mb-16px sm:-mx-24px sm:-mb-24px p-4 sm:p-6">
|
||||
<div class="absolute z-0 inset-0 opacity-10 bg-beta" />
|
||||
<div class="relative z-10">
|
||||
<slot name="footer" />
|
||||
</div>
|
||||
</footer>
|
||||
</TransitionChild>
|
||||
</div>
|
||||
</TransitionChild>
|
||||
</div>
|
||||
|
||||
@@ -243,8 +243,8 @@ const accountActionStatusCopy = computed((): { text: string; } => {
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template #footer>
|
||||
<div v-if="callbackStatus === 'success'" class="flex flex-row justify-center gap-16px">
|
||||
<template v-if="callbackStatus === 'success'" #footer>
|
||||
<div class="flex flex-row justify-center gap-16px">
|
||||
<BrandButton
|
||||
v-if="showSignInCta"
|
||||
btn-style="underline"
|
||||
|
||||
Reference in New Issue
Block a user