|
@@ -36,17 +36,17 @@
|
|
|
});
|
|
|
</script>
|
|
|
|
|
|
-{#if mounted}
|
|
|
- {#if !dismissed}
|
|
|
+{#if !dismissed}
|
|
|
+ {#if mounted}
|
|
|
<div
|
|
|
- class=" top-0 left-0 right-0 p-2 mx-4 px-3 flex justify-center items-center relative rounded-xl border dark:border-gray-800 text-gray-800 dark:text-gary-100 bg-white dark:bg-gray-900 backdrop-blur-xl"
|
|
|
- transition:fade={{ delay: 0, duration: 300 }}
|
|
|
+ class=" top-0 left-0 right-0 p-2 mx-4 px-3 flex justify-center items-center relative rounded-xl border border-gray-100 dark:border-gray-850 text-gray-800 dark:text-gary-100 bg-white dark:bg-gray-900 backdrop-blur-xl z-40"
|
|
|
+ transition:fade={{ delay: 100, duration: 300 }}
|
|
|
>
|
|
|
<div class=" flex flex-col md:flex-row md:items-center flex-1 text-sm w-fit gap-1.5">
|
|
|
<div class="flex justify-between self-start">
|
|
|
<div
|
|
|
class=" text-xs font-black {classNames[banner.type] ??
|
|
|
- classNames['info']} w-fit px-2 rounded uppercase"
|
|
|
+ classNames['info']} w-fit px-2 rounded uppercase line-clamp-1 mr-0.5"
|
|
|
>
|
|
|
{banner.type}
|
|
|
</div>
|
|
@@ -110,14 +110,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
{/if}
|
|
|
- <div class="flex h-full justify-start">
|
|
|
+ <div class="flex self-start">
|
|
|
{#if banner.dismissible}
|
|
|
<button
|
|
|
on:click={() => {
|
|
|
dismiss(banner.id);
|
|
|
}}
|
|
|
- class="mt-[-2.5px] ml-1.5 mr-1 text-gray-400 dark:hover:text-white h-2 mb-auto"
|
|
|
- >×</button
|
|
|
+ class=" -mt-[3px] ml-1.5 mr-1 text-gray-400 dark:hover:text-white h-1">×</button
|
|
|
>
|
|
|
{/if}
|
|
|
</div>
|