From 905ba5abc0fb6a384a0aed707f4e44272c6fa932 Mon Sep 17 00:00:00 2001 From: Wind-Explorer Date: Mon, 16 Mar 2026 16:40:57 +0800 Subject: [PATCH] Separated pet name component from pet menu --- .../scene/components/pet-menu/pet-menu.svelte | 11 ++-------- .../scene/components/pet-menu/pet-name.svelte | 20 +++++++++++++++++++ 2 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 src/routes/scene/components/pet-menu/pet-name.svelte diff --git a/src/routes/scene/components/pet-menu/pet-menu.svelte b/src/routes/scene/components/pet-menu/pet-menu.svelte index 201d996..127ca17 100644 --- a/src/routes/scene/components/pet-menu/pet-menu.svelte +++ b/src/routes/scene/components/pet-menu/pet-menu.svelte @@ -8,6 +8,7 @@ } from "./events"; import { sceneInteractive } from "../../../../events/scene-interactive"; import { commands, type UserBasicDto } from "$lib/bindings"; + import PetName from "./pet-name.svelte"; export interface PetMenuAction { icon: string; @@ -123,15 +124,7 @@ {/each} {#if dollName} -
- {dollName} -
+ {/if}