feat: font size preference
This commit is contained in:
parent
99abb78ef1
commit
41ef187379
9 changed files with 65 additions and 1 deletions
21
components/nav/SelectFontSize.vue
Normal file
21
components/nav/SelectFontSize.vue
Normal file
|
@ -0,0 +1,21 @@
|
|||
<script lang="ts" setup>
|
||||
import { FontSize } from 'composables/fontSize'
|
||||
const sizes = ['xs', 'sm', 'md', 'lg', 'xl']
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CommonDropdown>
|
||||
<slot />
|
||||
|
||||
<template #popper>
|
||||
<CommonDropdownItem
|
||||
v-for="size in sizes"
|
||||
:key="size"
|
||||
:checked="size === fontSize"
|
||||
@click="setFontSize(size as FontSize)"
|
||||
>
|
||||
{{ size }}
|
||||
</CommonDropdownItem>
|
||||
</template>
|
||||
</CommonDropdown>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue