diff --git a/public/assets/sounds/walk.wav b/public/assets/sounds/walk.wav index f7b188f..17f7fdd 100644 Binary files a/public/assets/sounds/walk.wav and b/public/assets/sounds/walk.wav differ diff --git a/src/App.vue b/src/App.vue index 8a6634f..b46b7b0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,7 +2,7 @@ - + @@ -48,10 +48,9 @@ addEventListener('click', (event) => { const classList = ['btn-cyan', 'btn-red', 'btn-indigo', 'btn-empty', 'btn-sound'] const target = event.target as HTMLElement // console.log(target) // Uncomment to log the clicked element - if (!classList.some((className) => target.classList.contains(className))) { - return // Only play sound if the clicked element is a button + if (classList.some((className) => target.classList.contains(className))) { + playSound('/assets/sounds/button-click.wav') } - playSound('/assets/sounds/button-click.wav') }) // Watch for "G" key press and toggle the gm panel diff --git a/src/assets/scss/main.scss b/src/assets/scss/main.scss index 7e61873..e1d9e77 100644 --- a/src/assets/scss/main.scss +++ b/src/assets/scss/main.scss @@ -164,6 +164,10 @@ button { @apply bg-gray bg-none; } +.list-open { + @apply w-[calc(75%_-_40px)] max-xl:w-[calc(100%_-_360px)]; +} + .hair-deselect:has(:checked) { img { @apply brightness-200; diff --git a/src/components/gameMaster/GmPanel.vue b/src/components/gameMaster/GmPanel.vue index 843de09..56e6113 100644 --- a/src/components/gameMaster/GmPanel.vue +++ b/src/components/gameMaster/GmPanel.vue @@ -6,7 +6,7 @@ - +