diff --git a/components/PlayerListElement.vue b/components/PlayerListElement.vue index e714739..567bd4d 100644 --- a/components/PlayerListElement.vue +++ b/components/PlayerListElement.vue @@ -2,6 +2,8 @@ import goStore from '@/netcode'; import type { Player } from "~/netcode/Player"; +const settingsStore = useSettingsStore() + const view = ref<"main" | "discard">("main") function show(data: "main" | "discard") { @@ -22,7 +24,7 @@ const props = defineProps()
Board
- {{ player.board.length }} @@ -35,7 +37,7 @@ const props = defineProps()
Discard
- {{ player.discard_pile.length }} @@ -62,14 +64,17 @@ const props = defineProps() .tooltip { - visibility: visible; + visibility: hidden; position: absolute; transition: .1s transform; background: white; - right: 0; + right: -0px; border-top-right-radius: 1em; border-bottom-right-radius: 1em; padding-right: 1em; + transition-property: visibility, transform; + transition-duration: 0.5s, 0.1s; + transition-timing-function: ease-in-out, ease-in-out; } .button { @@ -96,8 +101,9 @@ const props = defineProps() .button div:hover .tooltip { visibility: visible; - + display: block; transform: translateX(100%); + transition-duration: 0, 0.1s; } .button_card_number {