diff --git a/apps/desktop/src/components/editor/QueryEditor.vue b/apps/desktop/src/components/editor/QueryEditor.vue index b2ec0858f..fbbebf752 100644 --- a/apps/desktop/src/components/editor/QueryEditor.vue +++ b/apps/desktop/src/components/editor/QueryEditor.vue @@ -3400,7 +3400,7 @@ onMounted(async () => { })(); const [ - { EditorView, keymap, rectangularSelection, hoverTooltip, showTooltip, closeHoverTooltips, Decoration, tooltips, gutter, GutterMarker, lineNumberMarkers, lineNumbers, highlightActiveLineGutter, highlightSpecialChars, drawSelection, dropCursor, crosshairCursor, scrollPastEnd, ViewPlugin }, + { EditorView, keymap, rectangularSelection, hoverTooltip, showTooltip, closeHoverTooltips, Decoration, gutter, GutterMarker, lineNumberMarkers, lineNumbers, highlightActiveLineGutter, highlightSpecialChars, drawSelection, dropCursor, crosshairCursor, scrollPastEnd, ViewPlugin }, { EditorState, EditorSelection, Compartment, Prec, RangeSet, StateEffect, StateField }, langSql, { autocompletion, startCompletion, acceptCompletion, closeBrackets, closeBracketsKeymap, snippetCompletion, completionStatus, completionKeymap, insertCompletionText, nextSnippetField }, @@ -3855,7 +3855,6 @@ onMounted(async () => { keymap.of([...defaultKeymap, ...searchKeymap, ...historyKeymap, ...foldKeymap, ...completionKeymap]), sqlLanguageComp.of(buildSqlLanguageExtension()), sqlSemanticHighlightComp.of(buildSqlSemanticHighlightExtension()), - tooltips({ parent: document.body }), completionComp.of(buildSqlCompletionExtension()), sqlCompletionTheme(EditorView), codeMirrorTheme.of(theme), diff --git a/apps/desktop/src/components/ui/dialog/DialogOverlay.vue b/apps/desktop/src/components/ui/dialog/DialogOverlay.vue index 364761c98..77e688cb1 100644 --- a/apps/desktop/src/components/ui/dialog/DialogOverlay.vue +++ b/apps/desktop/src/components/ui/dialog/DialogOverlay.vue @@ -26,16 +26,8 @@ async function startWindowDrag(event: PointerEvent) { - - diff --git a/apps/desktop/src/lib/__tests__/editor/queryEditorTooltipParent.spec.ts b/apps/desktop/src/lib/__tests__/editor/queryEditorTooltipParent.spec.ts new file mode 100644 index 000000000..0b3deb379 --- /dev/null +++ b/apps/desktop/src/lib/__tests__/editor/queryEditorTooltipParent.spec.ts @@ -0,0 +1,10 @@ +import { readFileSync } from "node:fs"; +import { describe, expect, it } from "vitest"; + +const queryEditorSource = readFileSync(new URL("../../../components/editor/QueryEditor.vue", import.meta.url), "utf8"); + +describe("QueryEditor tooltip container", () => { + it("keeps CodeMirror tooltips inside the editor instead of extending document.body", () => { + expect(queryEditorSource).not.toContain("tooltips({ parent: document.body })"); + }); +}); diff --git a/apps/desktop/src/styles/__tests__/legacyWebviewFallback.spec.ts b/apps/desktop/src/styles/__tests__/legacyWebviewFallback.spec.ts index 40d0ebfba..07b44ee23 100644 --- a/apps/desktop/src/styles/__tests__/legacyWebviewFallback.spec.ts +++ b/apps/desktop/src/styles/__tests__/legacyWebviewFallback.spec.ts @@ -4,6 +4,7 @@ import { describe, expect, it } from "vitest"; const globalsCss = readFileSync(new URL("../globals.css", import.meta.url), "utf8"); const dialogContentSource = readFileSync(new URL("../../components/ui/dialog/DialogContent.vue", import.meta.url), "utf8"); const dialogScrollContentSource = readFileSync(new URL("../../components/ui/dialog/DialogScrollContent.vue", import.meta.url), "utf8"); +const dialogOverlaySource = readFileSync(new URL("../../components/ui/dialog/DialogOverlay.vue", import.meta.url), "utf8"); const connectionDialogSource = readFileSync(new URL("../../components/connection/ConnectionDialog.vue", import.meta.url), "utf8"); const desktopIndexSource = readFileSync(new URL("../../../index.html", import.meta.url), "utf8"); const connectionDialogLegacyCss = readFileSync(new URL("../../../public/connection-dialog-legacy.css", import.meta.url), "utf8"); @@ -43,6 +44,11 @@ describe("legacy WebView CSS fallbacks", () => { expect(connectionDialogSource).toContain("max-height: calc(var(--dbx-viewport-height) - 2rem);"); }); + it("avoids full-window backdrop filters that can blank WebKit after a dialog closes", () => { + expect(dialogOverlaySource).not.toContain("backdrop-filter"); + expect(dialogOverlaySource).toContain("bg-black/10"); + }); + it("keeps legacy tab triggers connected to the configured corner style", () => { const tabsTriggerRule = globalsCss.match(/\[data-slot="tabs-trigger"\] \{([\s\S]*?)\n \}/)?.[1];