diff --git a/src/lib/components/common/InterfaceSettings.svelte b/src/lib/components/common/InterfaceSettings.svelte index 82ed752ce2..51a16fb433 100644 --- a/src/lib/components/common/InterfaceSettings.svelte +++ b/src/lib/components/common/InterfaceSettings.svelte @@ -74,6 +74,7 @@ let renderMarkdownInUserMessages = true; let renderMarkdownInAssistantMessages = true; let expandDetails = false; + let chatHoverPreview = true; let renderMarkdownInPreviews = true; let showChatTitleInTab = true; @@ -287,6 +288,7 @@ renderMarkdownInUserMessages = currentSettings?.renderMarkdownInUserMessages ?? true; renderMarkdownInAssistantMessages = currentSettings?.renderMarkdownInAssistantMessages ?? true; expandDetails = currentSettings?.expandDetails ?? false; + chatHoverPreview = currentSettings?.chatHoverPreview ?? true; renderMarkdownInPreviews = currentSettings?.renderMarkdownInPreviews ?? true; landingPageMode = currentSettings?.landingPageMode ?? ''; @@ -1155,6 +1157,31 @@

+
+
+
+ {$i18n.t('Chat Hover Previews')} +
+ +
+ { + saveSettings({ chatHoverPreview }); + }} + /> +
+
+

+ {$i18n.t( + 'Show a floating preview of recent messages when hovering a chat in the sidebar.' + )} +

+
+
diff --git a/src/lib/components/layout/Sidebar/ChatItem.svelte b/src/lib/components/layout/Sidebar/ChatItem.svelte index 9d3fc269e1..d35adba28b 100644 --- a/src/lib/components/layout/Sidebar/ChatItem.svelte +++ b/src/lib/components/layout/Sidebar/ChatItem.svelte @@ -637,7 +637,7 @@