feat(settings): show default font size
This commit is contained in:
parent
40481c91e8
commit
55236dac98
6 changed files with 10 additions and 6 deletions
|
@ -1,4 +1,5 @@
|
|||
<script lang="ts" setup>
|
||||
import { DEFAULT_FONT_SIZE } from '~/constants'
|
||||
import type { FontSize } from '~/types'
|
||||
|
||||
const sizes = ['xs', 'sm', 'md', 'lg', 'xl'] as FontSize[]
|
||||
|
@ -8,7 +9,7 @@ const fontSize = useFontSizeRef()
|
|||
<template>
|
||||
<select v-model="fontSize">
|
||||
<option v-for="size in sizes" :key="size" :value="size" :selected="fontSize === size">
|
||||
{{ size }}
|
||||
{{ `${size}${size === DEFAULT_FONT_SIZE ? $t('settings.interface.default') : ''}` }}
|
||||
</option>
|
||||
</select>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue