From 4639baa9ae5abcab842297572a3f41ac15207a7b Mon Sep 17 00:00:00 2001 From: ericasch6 Date: Sun, 16 Aug 2026 14:50:47 +0200 Subject: [PATCH] fix:minor fixes in Layout --- resources/js/layouts/PublicLayout.vue | 7 +--- resources/js/pages/rooms/Show.vue | 60 ++++++++++++--------------- resources/js/types/index.ts | 1 + resources/js/types/room.ts | 19 +++++++++ 4 files changed, 47 insertions(+), 40 deletions(-) create mode 100644 resources/js/types/room.ts diff --git a/resources/js/layouts/PublicLayout.vue b/resources/js/layouts/PublicLayout.vue index d202e62..e553193 100644 --- a/resources/js/layouts/PublicLayout.vue +++ b/resources/js/layouts/PublicLayout.vue @@ -2,10 +2,6 @@ import { ref } from 'vue' const navigation = [ - { name: 'Product', href: '#' }, - { name: 'Features', href: '#' }, - { name: 'Marketplace', href: '#' }, - { name: 'Company', href: '#' }, ] const mobileMenuOpen = ref(false) @@ -27,8 +23,7 @@ -
+

@@ -476,6 +459,10 @@ function playerVote(player: Player): string | null { overflow-wrap: anywhere; } +.player-details-above { + transform: translateY(calc(-100% - 4.5rem)); +} + .moderator-controls { position: absolute; right: 1.5rem; @@ -498,7 +485,7 @@ function playerVote(player: Player): string | null { .seat-card { position: absolute; - top: 50%; + top: 1.75rem; left: 50%; width: 3.15rem; height: 4.35rem; @@ -627,6 +614,10 @@ function playerVote(player: Player): string | null { width: 6.5rem; } + .player-details-above { + transform: translateY(calc(-100% - 4rem)); + } + .moderator-controls { right: 1rem; bottom: 1rem; @@ -638,6 +629,7 @@ function playerVote(player: Player): string | null { } .seat-card { + top: 1.5rem; width: 2.65rem; height: 3.65rem; transform: translate(-50%, -50%) translate(var(--card-x), var(--card-y)) diff --git a/resources/js/types/index.ts b/resources/js/types/index.ts index afa7f48..c2b7a0c 100644 --- a/resources/js/types/index.ts +++ b/resources/js/types/index.ts @@ -1,3 +1,4 @@ export * from './auth'; export * from './navigation'; +export * from './room'; export * from './ui'; diff --git a/resources/js/types/room.ts b/resources/js/types/room.ts new file mode 100644 index 0000000..a7823a8 --- /dev/null +++ b/resources/js/types/room.ts @@ -0,0 +1,19 @@ +import type { CSSProperties } from 'vue'; + +export type PokerCard = { + key: string; + label: string; +}; + +export type RoomPlayer = { + id: number; + name: string; + is_moderator: boolean; + has_voted: boolean; + vote: string | null; +}; + +export type SeatStyle = CSSProperties & { + '--card-x': string; + '--card-y': string; +};