detached 22c8b62

fix(gui): enhance omnibox container isolation with explicit css containment

commit
22c8b62264e817e88dc1a53e6a734d79b2bf3bc8
author
bamen · · 2025-09-14 19:39 UTC
committer
bamen · · 2025-09-14 19:21 UTC
parent
a4c4583
signature
unsigned
1 file · +15 -1
M gui/src/injected/modules/omnibox.ts +15 -1
@@ -45,7 +45,21 @@ export async function initializeOmnibox(config: OmniboxInitConfig = {}): Promise
4545 if (!container) {
4646 container = document.createElement('div');
4747 container.id = containerId;
48- container.style.cssText = 'position:fixed;inset:0;z-index:2147483647;pointer-events:none;';
48+ container.style.cssText = `
49+ position: fixed !important;
50+ top: 0 !important;
51+ left: 0 !important;
52+ right: 0 !important;
53+ bottom: 0 !important;
54+ z-index: 2147483647 !important;
55+ pointer-events: none !important;
56+ margin: 0 !important;
57+ padding: 0 !important;
58+ border: none !important;
59+ background: none !important;
60+ isolation: isolate !important;
61+ contain: layout style !important;
62+ `;
4963 document.documentElement.appendChild(container);
5064 }
5165
@@ -45,7 +45,21 @@ export async function initializeOmnibox(config: OmniboxInitConfig = {}): Promise
45 if (!container) {45 if (!container) {
46 container = document.createElement('div');46 container = document.createElement('div');
47 container.id = containerId;47 container.id = containerId;
48- container.style.cssText = 'position:fixed;inset:0;z-index:2147483647;pointer-events:none;';48+ container.style.cssText = `
49+ position: fixed !important;
50+ top: 0 !important;
51+ left: 0 !important;
52+ right: 0 !important;
53+ bottom: 0 !important;
54+ z-index: 2147483647 !important;
55+ pointer-events: none !important;
56+ margin: 0 !important;
57+ padding: 0 !important;
58+ border: none !important;
59+ background: none !important;
60+ isolation: isolate !important;
61+ contain: layout style !important;
62+ `;
49 document.documentElement.appendChild(container);63 document.documentElement.appendChild(container);
50 }64 }
51 65

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close