fixed dolls page scrolling behaviour

This commit is contained in:
2026-02-03 23:47:23 +08:00
parent f696d5e385
commit 0bd78f6365
3 changed files with 16 additions and 27 deletions

View File

@@ -19,9 +19,7 @@
});
</script>
<div
class="p-2 h-full absolute inset-0 bg-base-100 border-base-200/50 border border-t-0 rounded-b-xl"
>
<div class="p-2 size-full max-h-full bg-base-100 border-base-200/50">
{#if showInteractionOverlay}
<div
class="absolute inset-0 z-50 cursor-not-allowed rounded-b-xl"
@@ -37,8 +35,8 @@
tabindex="-1"
></div>
{/if}
<div class="flex flex-col gap-2 h-full">
<div class="size-full flex flex-col gap-2">
<div class="flex flex-col gap-2 h-full max-h-full">
<div class="size-full flex flex-col max-h-full gap-2 h-full">
<div class="tabs tabs-lift h-full flex-1">
<input
type="radio"
@@ -71,17 +69,6 @@
<Preferences />
</div>
</div>
<div class="w-full flex flex-row justify-between">
<div></div>
<div class="flex flex-row gap-2">
<button
class="btn btn-sm btn-outline border-neutral-500/50"
onclick={async () => {
await getCurrentWebviewWindow().close();
}}><p class="px-4">Ok</p></button
>
</div>
</div>
</div>
</div>
</div>

View File

@@ -33,7 +33,7 @@
<p>No dolls found. Create your first doll!</p>
</div>
{:else}
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4">
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-2">
{#each dolls as doll (doll.id)}
<div
class="card border border-base-200 bg-linear-to-b from-base-100 to-base-300 relative"

View File

@@ -48,7 +48,7 @@
}
</script>
<div class="dolls-page flex flex-col gap-4">
<div class="dolls-page flex flex-col gap-4 max-h-full h-full">
<div class="flex justify-between items-center">
<h2 class="text-lg font-bold">Your Nekos</h2>
<button class="btn btn-primary btn-sm" on:click={openCreateModal}>
@@ -56,6 +56,7 @@
</button>
</div>
<div class="overflow-y-auto rounded p-2 h-full border-base-200 border">
<DollsList
{dolls}
{user}
@@ -66,3 +67,4 @@
onRemoveActiveDoll={handleRemoveActiveDoll}
/>
</div>
</div>