Files
veridian/app/layouts/default.vue
T
zoeissleeping fc5aedcedd reafctor: Rely only on the database for themes
This commit makes it so that a user's theme will only be pulled from the
database rather than from a weird mix of cookies and the database. This
fixes some issues with themes rendering weirdly.
2026-02-24 16:35:40 +00:00

26 lines
571 B
Vue

<script setup lang="ts">
import SettingsDialog from '~/components/Settings/Dialog.vue';
const { colorScheme } = await useUserSettings();
useHead({
htmlAttrs: {
class: colorScheme.class
}
});
useKeyboardShortcuts();
</script>
<template>
<Sidenav />
<main
class="bg-[var(--bg-surface)] flex flex-col h-full w-full border border-solid border-[var(--color-border)] rounded-lg overflow-hidden">
<div class="flex-1 overflow-y-auto">
<slot />
</div>
</main>
<SettingsDialog />
<Dropdown />
</template>