mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
11fd0735d1
commit
95462a394a
3 changed files with 7 additions and 7 deletions
|
|
@ -2230,7 +2230,7 @@
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>
|
<title>
|
||||||
{$settings.useChatTitleAsTabTitle !== false && $chatTitle
|
{$settings.showChatTitleInTab !== false && $chatTitle
|
||||||
? `${$chatTitle.length > 30 ? `${$chatTitle.slice(0, 30)}...` : $chatTitle} • ${$WEBUI_NAME}`
|
? `${$chatTitle.length > 30 ? `${$chatTitle.slice(0, 30)}...` : $chatTitle} • ${$WEBUI_NAME}`
|
||||||
: `${$WEBUI_NAME}`}
|
: `${$WEBUI_NAME}`}
|
||||||
</title>
|
</title>
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@
|
||||||
let chatFadeStreamingText = true;
|
let chatFadeStreamingText = true;
|
||||||
let collapseCodeBlocks = false;
|
let collapseCodeBlocks = false;
|
||||||
let expandDetails = false;
|
let expandDetails = false;
|
||||||
let useChatTitleAsTabTitle = true;
|
let showChatTitleInTab = true;
|
||||||
|
|
||||||
let showFloatingActionButtons = true;
|
let showFloatingActionButtons = true;
|
||||||
let floatingActionButtons = null;
|
let floatingActionButtons = null;
|
||||||
|
|
@ -225,7 +225,7 @@
|
||||||
temporaryChatByDefault = $settings?.temporaryChatByDefault ?? false;
|
temporaryChatByDefault = $settings?.temporaryChatByDefault ?? false;
|
||||||
chatDirection = $settings?.chatDirection ?? 'auto';
|
chatDirection = $settings?.chatDirection ?? 'auto';
|
||||||
userLocation = $settings?.userLocation ?? false;
|
userLocation = $settings?.userLocation ?? false;
|
||||||
useChatTitleAsTabTitle = $settings?.useChatTitleAsTabTitle ?? true;
|
showChatTitleInTab = $settings?.showChatTitleInTab ?? true;
|
||||||
|
|
||||||
notificationSound = $settings?.notificationSound ?? true;
|
notificationSound = $settings?.notificationSound ?? true;
|
||||||
notificationSoundAlways = $settings?.notificationSoundAlways ?? false;
|
notificationSoundAlways = $settings?.notificationSoundAlways ?? false;
|
||||||
|
|
@ -334,16 +334,16 @@
|
||||||
<div>
|
<div>
|
||||||
<div class=" py-0.5 flex w-full justify-between">
|
<div class=" py-0.5 flex w-full justify-between">
|
||||||
<div id="use-chat-title-as-tab-title-label" class=" self-center text-xs">
|
<div id="use-chat-title-as-tab-title-label" class=" self-center text-xs">
|
||||||
{$i18n.t("Use the chat title as the browser's tab title")}
|
{$i18n.t('Display chat title in tab')}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center gap-2 p-1">
|
<div class="flex items-center gap-2 p-1">
|
||||||
<Switch
|
<Switch
|
||||||
ariaLabelledbyId="use-chat-title-as-tab-title-label"
|
ariaLabelledbyId="use-chat-title-as-tab-title-label"
|
||||||
tooltip={true}
|
tooltip={true}
|
||||||
bind:state={useChatTitleAsTabTitle}
|
bind:state={showChatTitleInTab}
|
||||||
on:change={() => {
|
on:change={() => {
|
||||||
saveSettings({ useChatTitleAsTabTitle });
|
saveSettings({ showChatTitleInTab });
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@ type Settings = {
|
||||||
notificationEnabled?: boolean;
|
notificationEnabled?: boolean;
|
||||||
highContrastMode?: boolean;
|
highContrastMode?: boolean;
|
||||||
title?: TitleSettings;
|
title?: TitleSettings;
|
||||||
useChatTitleAsTabTitle?: boolean;
|
showChatTitleInTab?: boolean;
|
||||||
splitLargeDeltas?: boolean;
|
splitLargeDeltas?: boolean;
|
||||||
chatDirection?: 'LTR' | 'RTL' | 'auto';
|
chatDirection?: 'LTR' | 'RTL' | 'auto';
|
||||||
ctrlEnterToSend?: boolean;
|
ctrlEnterToSend?: boolean;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue