fc5aedcedd
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.
26 lines
571 B
Vue
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>
|