refactor: unify user settings (#821)

Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
This commit is contained in:
Anthony Fu 2023-01-06 18:39:37 +01:00 committed by GitHub
parent 35c9a871be
commit 1aa118283e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 105 additions and 61 deletions

View file

@ -1,11 +1,18 @@
<script lang="ts" setup>
import { useFeatureFlag } from '~~/composables/settings/featureFlags'
const route = useRoute()
const wideLayout = computed(() => route.meta.wideLayout ?? false)
const showUserPicker = logicAnd(
useFeatureFlag('experimentalUserPicker'),
() => useUsers().value.length > 1,
)
</script>
<template>
<div h-full :class="{ zen: isZenMode }">
<div h-full :class="{ zen: userSettings.zenMode }">
<main flex w-full mxa lg:max-w-80rem>
<aside class="hidden sm:flex w-1/8 md:w-1/6 lg:w-1/5 xl:w-1/4 justify-end xl:me-4 zen-hide" relative>
<div sticky top-0 w-20 xl:w-100 h-screen flex="~ col" lt-xl-items-center>