Skip to content

Commit

Permalink
fix podium bg and col/row change crash
Browse files Browse the repository at this point in the history
  • Loading branch information
swantzter committed Jul 2, 2024
1 parent 5ca1f0c commit 7b37de7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/views/DeviceStreamSetup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ function removeScreen (screenId: string) {
}
function changeCols (screenId: string, cols: number) {
if (cols == null || Number.isNaN(cols)) return
const screen = settings.value.screens?.[screenId]
if (screen == null) return
screen.cols = cols
Expand All @@ -281,6 +282,7 @@ function changeCols (screenId: string, cols: number) {
}
}
function changeRows (screenId: string, rows: number) {
if (rows == null || Number.isNaN(rows)) return
const screen = settings.value.screens?.[screenId]
if (screen == null) return
screen.rows = rows
Expand Down
7 changes: 5 additions & 2 deletions src/views/PodiumLive.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<template>
<main class="grid grid-cols-3 gap-6 px-8 py-6">
<main
class="grid grid-cols-3 gap-6 px-8 py-6"
:class="{ 'dark bg-black': theme === 'dark' }"
>
<div
v-for="pos in positions"
:key="pos"
Expand Down Expand Up @@ -95,7 +98,7 @@ main {
background-size: cover;
}
.dark main {
main.dark {
background: linear-gradient(0deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.8) 50%, rgba(0,0,0,1) 100%), var(--bgUrl, black);
}
</style>

0 comments on commit 7b37de7

Please sign in to comment.