Add pref for whether to display full user names and tooltips

This commit is contained in:
Tusooa Zhu 2022-01-10 01:16:33 -05:00
parent 76547fe66d
commit 1d4b1b296e
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
6 changed files with 64 additions and 6 deletions

View file

@ -20,6 +20,11 @@ const GeneralTab = {
value: mode,
label: this.$t(`settings.subject_line_${mode === 'masto' ? 'mastodon' : mode}`)
})),
mentionLinkDisplayOptions: ['short', 'full_for_remote', 'full'].map(mode => ({
key: mode,
value: mode,
label: this.$t(`settings.mention_link_display_${mode}`)
})),
loopSilentAvailable:
// Firefox
Object.getOwnPropertyDescriptor(HTMLVideoElement.prototype, 'mozHasAudio') ||

View file

@ -152,6 +152,25 @@
{{ $t('settings.use_at_icon') }}
</BooleanSetting>
</li>
<li>
<ChoiceSetting
id="mentionLinkDisplay"
path="mentionLinkDisplay"
:options="mentionLinkDisplayOptions"
>
{{ $t('settings.mention_link_display') }}
</ChoiceSetting>
</li>
<ul
v-if="mentionLinkDisplay === 'short'"
class="setting-list suboptions"
>
<li>
<BooleanSetting path="mentionLinkShowTooltip">
{{ $t('settings.mention_link_show_tooltip') }}
</BooleanSetting>
</li>
</ul>
</ul>
</div>