more local settings

This commit is contained in:
Henry Jameson 2026-03-15 19:08:02 +02:00
commit d0fb8bcf85
7 changed files with 23 additions and 10 deletions

View file

@ -28,7 +28,6 @@ export default {
'fallback', 'fallback',
'options', 'options',
'no-inherit', 'no-inherit',
'isLocal',
], ],
mounted() { mounted() {
useInterfaceStore().queryLocalFonts() useInterfaceStore().queryLocalFonts()

View file

@ -8,7 +8,7 @@
:model-value="present" :model-value="present"
@change="$emit('update:modelValue', typeof modelValue === 'undefined' ? fallback : undefined)" @change="$emit('update:modelValue', typeof modelValue === 'undefined' ? fallback : undefined)"
> >
<LocalSettingIndicator :is-local="isLocal" /> <LocalSettingIndicator />
{{ ' ' }} {{ ' ' }}
<i18n-t <i18n-t
scope="global" scope="global"

View file

@ -62,12 +62,18 @@
</IntegerSetting> </IntegerSetting>
</li> </li>
<li> <li>
<BooleanSetting path="hideAttachments"> <BooleanSetting
:local="true"
path="hideAttachments"
>
{{ $t('settings.hide_attachments_in_tl') }} {{ $t('settings.hide_attachments_in_tl') }}
</BooleanSetting> </BooleanSetting>
</li> </li>
<li> <li>
<BooleanSetting path="hideAttachmentsInConv"> <BooleanSetting
:local="true"
path="hideAttachmentsInConv"
>
{{ $t('settings.hide_attachments_in_convo') }} {{ $t('settings.hide_attachments_in_convo') }}
</BooleanSetting> </BooleanSetting>
</li> </li>

View file

@ -91,6 +91,7 @@
<li> <li>
<BooleanSetting <BooleanSetting
path="imageCompression" path="imageCompression"
:local="true"
expert="1" expert="1"
> >
{{ $t('settings.image_compression') }} {{ $t('settings.image_compression') }}
@ -99,6 +100,7 @@
<li> <li>
<BooleanSetting <BooleanSetting
path="alwaysUseJpeg" path="alwaysUseJpeg"
:local="true"
expert="1" expert="1"
parent-path="imageCompression" parent-path="imageCompression"
> >

View file

@ -68,7 +68,6 @@
name="ui" name="ui"
:label="$t('settings.style.fonts.components_inline.interface')" :label="$t('settings.style.fonts.components_inline.interface')"
:fallback="{ family: 'sans-serif' }" :fallback="{ family: 'sans-serif' }"
:is-local="true"
no-inherit="1" no-inherit="1"
@update:model-value="v => updateFont('interface', v)" @update:model-value="v => updateFont('interface', v)"
/> />
@ -77,7 +76,6 @@
<FontControl <FontControl
:model-value="theme3hacks.fonts.input" :model-value="theme3hacks.fonts.input"
name="input" name="input"
:is-local="true"
:fallback="{ family: 'inherit' }" :fallback="{ family: 'inherit' }"
:label="$t('settings.style.fonts.components_inline.input')" :label="$t('settings.style.fonts.components_inline.input')"
@update:model-value="v => updateFont('input', v)" @update:model-value="v => updateFont('input', v)"
@ -100,6 +98,7 @@
<FloatSetting <FloatSetting
v-if="user" v-if="user"
path="emojiReactionsScale" path="emojiReactionsScale"
:local="true"
> >
{{ $t('settings.emoji_reactions_scale') }} {{ $t('settings.emoji_reactions_scale') }}
</FloatSetting> </FloatSetting>

View file

@ -40,6 +40,7 @@
<li> <li>
<UnitSetting <UnitSetting
path="themeEditorMinWidth" path="themeEditorMinWidth"
:local="true"
:units="['px', 'rem']" :units="['px', 'rem']"
expert="1" expert="1"
> >
@ -83,12 +84,18 @@
</UnitSetting> </UnitSetting>
</li> </li>
<li> <li>
<BooleanSetting path="sidebarRight"> <BooleanSetting
:local="true"
path="sidebarRight"
>
{{ $t('settings.right_sidebar') }} {{ $t('settings.right_sidebar') }}
</BooleanSetting> </BooleanSetting>
</li> </li>
<li> <li>
<BooleanSetting path="navbarColumnStretch"> <BooleanSetting
:local="true"
path="navbarColumnStretch"
>
{{ $t('settings.navbar_column_stretch') }} {{ $t('settings.navbar_column_stretch') }}
</BooleanSetting> </BooleanSetting>
</li> </li>

View file

@ -94,8 +94,6 @@ export const instanceDefaultConfig = {
webPushAlwaysShowNotifications: false, webPushAlwaysShowNotifications: false,
interfaceLanguage: browserLocale, interfaceLanguage: browserLocale,
hideScopeNotice: false, hideScopeNotice: false,
useStreamingApi: false,
sidebarRight: false,
scopeCopy: true, scopeCopy: true,
subjectLineBehavior: 'email', subjectLineBehavior: 'email',
alwaysShowSubjectInput: true, alwaysShowSubjectInput: true,
@ -168,6 +166,7 @@ export const defaultConfigLocal = {
hideAttachments: false, hideAttachments: false,
hideAttachmentsInConv: false, hideAttachmentsInConv: false,
postContentType: 'text/plain', postContentType: 'text/plain',
sidebarRight: false,
sidebarColumnWidth: '25rem', sidebarColumnWidth: '25rem',
contentColumnWidth: '45rem', contentColumnWidth: '45rem',
notifsColumnWidth: '25rem', notifsColumnWidth: '25rem',
@ -181,6 +180,7 @@ export const defaultConfigLocal = {
mentionLinkDisplay: 'short', mentionLinkDisplay: 'short',
alwaysUseJpeg: false, alwaysUseJpeg: false,
imageCompression: true, imageCompression: true,
useStreamingApi: false,
} }
export const makeUndefined = (c) => export const makeUndefined = (c) =>