chore: Simplify class def

This commit is contained in:
Sidharth Vinod
2025-03-14 18:16:44 -07:00
parent a9db7e0513
commit dcdc19d15e
+1 -3
View File
@@ -149,9 +149,7 @@
<div
id="view"
bind:this={view}
class="grid-bg-{shouldShowGrid ? ($mode === 'dark' ? 'dark' : 'light') : 'none'} h-full"
class:error
class:outOfSync>
class={[shouldShowGrid && `grid-bg-${$mode}`, 'h-full', (error || outOfSync) && 'opacity-50']}>
<div id="container" bind:this={container} class="h-full overflow-auto"></div>
</div>