This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-10 20:22:29 -06:00
1 parent 5ec16e76e6
commit b20bcdbba7
3 files changed
+1079 -782

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -58,6 +58,8 @@
import { createMessagesList } from '$lib/utils';
import { getOutputText } from '$lib/components/chat/Messages/structuredOutput';
const MOBILE_SIDEBAR_SETTLE_MS = 210;
const i18n = getContext('i18n');
const dispatch = createEventDispatcher();
@@ -111,6 +113,12 @@
}
};
const focusChatInputSoon = () => {
setTimeout(() => {
document.getElementById('chat-input')?.focus({ preventScroll: true });
}, MOBILE_SIDEBAR_SETTLE_MS);
};
$: if (openPreview && closeActiveHoverPreview !== closeHoverPreview) {
closeActiveHoverPreview?.();
closeActiveHoverPreview = closeHoverPreview;
@@ -569,6 +577,7 @@
if ($mobile) {
showSidebar.set(false);
focusChatInputSoon();
}
// Optimistically mark as read in UI when clicked