fix(stage-tamagotchi): improve controls island tooltip placement (#1119)
This commit is contained in:
+5
-1
@@ -1,5 +1,9 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger } from 'reka-ui'
|
import { TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger } from 'reka-ui'
|
||||||
|
|
||||||
|
const { side = 'top' } = defineProps<{
|
||||||
|
side?: 'top' | 'right' | 'bottom' | 'left'
|
||||||
|
}>()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -20,7 +24,7 @@ import { TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger } from 're
|
|||||||
'rounded-lg backdrop-blur-md',
|
'rounded-lg backdrop-blur-md',
|
||||||
'text-xs',
|
'text-xs',
|
||||||
]"
|
]"
|
||||||
side="left"
|
:side="side"
|
||||||
:side-offset="4"
|
:side-offset="4"
|
||||||
>
|
>
|
||||||
<slot name="tooltip" />
|
<slot name="tooltip" />
|
||||||
|
|||||||
+2
-2
@@ -179,7 +179,7 @@ function refreshWindow() {
|
|||||||
|
|
||||||
<!-- Main Controls -->
|
<!-- Main Controls -->
|
||||||
<div flex flex-col gap-1>
|
<div flex flex-col gap-1>
|
||||||
<ControlButtonTooltip>
|
<ControlButtonTooltip side="left">
|
||||||
<ControlButton :button-style="adjustStyleClasses.button" @click="expanded = !expanded">
|
<ControlButton :button-style="adjustStyleClasses.button" @click="expanded = !expanded">
|
||||||
<div
|
<div
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@ function refreshWindow() {
|
|||||||
</template>
|
</template>
|
||||||
</ControlButtonTooltip>
|
</ControlButtonTooltip>
|
||||||
|
|
||||||
<ControlButtonTooltip>
|
<ControlButtonTooltip side="left">
|
||||||
<ControlButton :button-style="adjustStyleClasses.button" cursor-move :class="{ 'drag-region': isLinux }" @mousedown="startDraggingWindow?.()">
|
<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" />
|
<div i-ph:arrows-out-cardinal :class="adjustStyleClasses.icon" text="neutral-800 dark:neutral-300" />
|
||||||
</ControlButton>
|
</ControlButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user