GmPanel is full screen by default now

This commit is contained in:
Dennis Postma 2024-12-12 01:12:33 +01:00
parent 608932300f
commit 7d6bd39f29
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<template>
<Modal :isModalOpen="gameStore.uiSettings.isGmPanelOpen" @modal:close="() => gameStore.toggleGmPanel()" :modal-width="1000" :modal-height="650" :can-full-screen="true" :disable-bg-texture="true">
<Modal :isModalOpen="gameStore.uiSettings.isGmPanelOpen" @modal:close="() => gameStore.toggleGmPanel()" :modal-width="1000" :modal-height="650" :is-full-screen="true" :disable-bg-texture="true">
<template #modalHeader>
<div class="flex gap-1.5 flex-wrap">
<button @mousedown.stop class="btn-cyan py-1.5 px-4 min-w-24">General</button>

View File

@ -48,6 +48,7 @@ interface ModalProps {
isModalOpen: boolean
closable?: boolean
isResizable?: boolean
isFullScreen?: boolean
canFullScreen?: boolean
modalPositionX?: number
modalPositionY?: number
@ -67,6 +68,7 @@ const props = withDefaults(defineProps<ModalProps>(), {
isModalOpen: false,
closable: true,
isResizable: true,
isFullScreen: false,
canFullScreen: false,
modalPositionX: 0,
modalPositionY: 0,
@ -87,7 +89,7 @@ const x = ref(0)
const y = ref(0)
const isResizing = ref(false)
const isDragging = ref(false)
const isFullScreen = ref(false)
const isFullScreen = ref(props.isFullScreen)
const minDimensions = {
width: 200,