made msg pop smaller & longer & shadows

This commit is contained in:
2026-03-20 19:50:01 +08:00
parent db972c8387
commit 5165bc2c16
2 changed files with 4 additions and 11 deletions

View File

@@ -44,7 +44,7 @@
clearHideTimer(); clearHideTimer();
hideTimer = setTimeout(() => { hideTimer = setTimeout(() => {
dismiss(); dismiss();
}, 4000); }, 14000);
} }
}); });
@@ -54,21 +54,14 @@
</script> </script>
<div <div
class={`absolute card bottom-9 flex flex-col left-4 z-40 w-52 border border-base-300 bg-base-100 p-2 text-base-content transition-all duration-200 ease-out ${ class={`absolute card bottom-9 flex flex-col left-4 z-40 w-max max-w-52 border border-base-300 shadow-lg bg-base-100 px-2 py-1.5 text-base-content transition-all duration-200 ease-out ${
visible visible
? "pointer-events-auto opacity-100" ? "pointer-events-auto opacity-100"
: "pointer-events-none opacity-0" : "pointer-events-none opacity-0"
}`} }`}
> >
{#if interaction} {#if interaction}
<div class="flex items-start justify-between gap-2"> <p class="line-clamp-3 text-xs leading-snug wrap-break-words">
<p
class="truncate text-[8px] font-semibold uppercase tracking-wide opacity-70"
>
{interaction.senderName}
</p>
</div>
<p class="line-clamp-3 text-sm leading-snug mt-1 wrap-break-words">
{interaction.content} {interaction.content}
</p> </p>
{/if} {/if}

View File

@@ -98,7 +98,7 @@
<div <div
bind:this={rootEl} bind:this={rootEl}
class={`absolute card bottom-9 flex flex-col left-4 z-40 w-56 border border-base-300 bg-base-100 p-2 text-base-content transition-all duration-200 ease-out ${ class={`absolute card bottom-9 flex flex-col left-4 z-40 w-56 border border-base-300 bg-base-100 p-2 shadow-lg text-base-content transition-all duration-200 ease-out ${
isOpen && $sceneInteractive isOpen && $sceneInteractive
? "pointer-events-auto opacity-100" ? "pointer-events-auto opacity-100"
: "pointer-events-none opacity-0" : "pointer-events-none opacity-0"