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',
'options',
'no-inherit',
'isLocal',
],
mounted() {
useInterfaceStore().queryLocalFonts()

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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