Fix theme of in builder preview

This commit is contained in:
Andrew Kingston 2024-10-24 09:43:30 +01:00
parent ab0f81824d
commit 27d42a9bfe
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
import { findComponent, findComponentPath } from "helpers/components" import { findComponent, findComponentPath } from "helpers/components"
import { isActive, goto } from "@roxi/routify" import { isActive, goto } from "@roxi/routify"
import { ClientAppSkeleton } from "@budibase/frontend-core" import { ClientAppSkeleton } from "@budibase/frontend-core"
import { getThemeClassNames } from "@budibase/shared-core"
let iframe let iframe
let layout let layout
@ -257,7 +258,7 @@
class:mobile={$previewStore.previewDevice === "mobile"} class:mobile={$previewStore.previewDevice === "mobile"}
> >
{#if loading} {#if loading}
<div class={`loading ${$themeStore.baseTheme} ${$themeStore.theme}`}> <div class={`loading ${getThemeClassNames($themeStore.theme)}`}>
<ClientAppSkeleton <ClientAppSkeleton
sideNav={$navigationStore?.navigation === "Left"} sideNav={$navigationStore?.navigation === "Left"}
hideFooter hideFooter