fix font overrides

This commit is contained in:
Henry Jameson 2026-03-25 11:56:09 +02:00
commit 54298927da
3 changed files with 7 additions and 6 deletions

View file

@ -27,6 +27,7 @@ export default {
},
emits: ['update:modelValue'],
data() {
console.log(this.fallback)
return {
manualEntry: false,
availableOptions: [
@ -45,7 +46,7 @@ export default {
},
computed: {
present() {
return typeof this.modelValue !== 'undefined'
return this.modelValue != null
},
localFontsList() {
return useInterfaceStore().localFonts

View file

@ -6,7 +6,7 @@
:id="name + '-o'"
class="font-checkbox setting-control setting-label"
:model-value="present"
@change="$emit('update:modelValue', typeof modelValue === 'undefined' ? fallback : undefined)"
@change="$emit('update:modelValue', modelValue == null ? fallback : null)"
>
<LocalSettingIndicator />
{{ ' ' }}

View file

@ -620,22 +620,22 @@ export const LOCAL_DEFAULT_CONFIG_DEFINITIONS = {
},
fontInterface: {
description: 'Interface font override',
type: 'string',
type: 'object',
default: null,
},
fontInput: {
description: 'Input font override',
type: 'string',
type: 'object',
default: null,
},
fontPosts: {
description: 'Post font override',
type: 'string',
type: 'object',
default: null,
},
fontMonospace: {
description: 'Monospace font override',
type: 'string',
type: 'object',
default: null,
},
themeDebug: {