fix(stage-tamagotchi): improve controls island tooltip placement (#1119)

This commit is contained in:
Liet Blue
2026-03-05 03:22:45 +08:00
committed by GitHub
parent b81685896c
commit 41bd3d8e0e
2 changed files with 7 additions and 3 deletions
@@ -1,5 +1,9 @@
<script setup lang="ts">
import { TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger } from 'reka-ui'
const { side = 'top' } = defineProps<{
side?: 'top' | 'right' | 'bottom' | 'left'
}>()
</script>
<template>
@@ -20,7 +24,7 @@ import { TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger } from 're
'rounded-lg backdrop-blur-md',
'text-xs',
]"
side="left"
:side="side"
:side-offset="4"
>
<slot name="tooltip" />
@@ -179,7 +179,7 @@ function refreshWindow() {
<!-- Main Controls -->
<div flex flex-col gap-1>
<ControlButtonTooltip>
<ControlButtonTooltip side="left">
<ControlButton :button-style="adjustStyleClasses.button" @click="expanded = !expanded">
<div
@@ -194,7 +194,7 @@ function refreshWindow() {
</template>
</ControlButtonTooltip>
<ControlButtonTooltip>
<ControlButtonTooltip side="left">
<ControlButton :button-style="adjustStyleClasses.button" cursor-move :class="{ 'drag-region': isLinux }" @mousedown="startDraggingWindow?.()">
<div i-ph:arrows-out-cardinal :class="adjustStyleClasses.icon" text="neutral-800 dark:neutral-300" />
</ControlButton>