mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-29 17:22:25 +01:00
Squash Odysseus development history
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Search Chat Module — Ctrl+K command palette for searching conversations
|
||||
|
||||
import uiModule from './ui.js';
|
||||
import uiModule from './ui.js?v=20260908weekhoverfix1';
|
||||
import sessionModule from './sessions.js';
|
||||
|
||||
let API_BASE = '';
|
||||
@@ -35,6 +35,12 @@ export function openSearch() {
|
||||
hideMobileSidebarForSearch();
|
||||
const overlay = el('search-overlay');
|
||||
if (!overlay) return;
|
||||
// Freeze the opening offset before focus summons the mobile keyboard.
|
||||
// A live `vh` value shrinks during the keyboard animation and visibly
|
||||
// pulls the search popup upward even though it is already unobscured.
|
||||
const openingHeight = window.innerHeight || document.documentElement.clientHeight;
|
||||
const openingTop = Math.max(56, Math.min(140, Math.round(openingHeight * 0.15)));
|
||||
overlay.style.setProperty('--search-overlay-top', `${openingTop}px`);
|
||||
overlay.classList.remove('hidden');
|
||||
const input = el('search-input');
|
||||
if (input) {
|
||||
|
||||
Reference in New Issue
Block a user