fix(desktop): replace dialog blur with theme-aware mask
This commit is contained in:
5 files changed
+6
-42
No files matched your search
@@ -6,8 +6,6 @@ const dialogContentSource = readFileSync(new URL("../../components/ui/dialog/Dia
|
||||
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 dialogBackdropSource = readFileSync(new URL("../../lib/app/dialogBackdrop.ts", import.meta.url), "utf8");
|
||||
const appSource = readFileSync(new URL("../../App.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");
|
||||
|
||||
@@ -46,15 +44,12 @@ describe("legacy WebView CSS fallbacks", () => {
|
||||
expect(connectionDialogSource).toContain("max-height: calc(var(--dbx-viewport-height) - 2rem);");
|
||||
});
|
||||
|
||||
it("blurs the stable app root instead of the transient dialog overlay", () => {
|
||||
it("uses a lightweight theme-aware mask without full-window filters", () => {
|
||||
expect(dialogOverlaySource).not.toContain("backdrop-filter");
|
||||
expect(dialogOverlaySource).toContain("bg-black/10");
|
||||
expect(globalsCss).toContain("html.dbx-dialog-backdrop-active #root");
|
||||
expect(globalsCss).toContain("filter: blur(4px);");
|
||||
expect(dialogBackdropSource).toContain("dialogBackdropObserver.observe(document.body, { childList: true })");
|
||||
expect(dialogBackdropSource).not.toContain("subtree: true");
|
||||
expect(appSource).toContain("startDialogBackdropSync();");
|
||||
expect(appSource).toContain("stopDialogBackdropSync();");
|
||||
expect(dialogOverlaySource).toContain("bg-black/25");
|
||||
expect(dialogOverlaySource).toContain("dark:bg-background/70");
|
||||
expect(globalsCss).not.toContain("dbx-dialog-backdrop");
|
||||
expect(globalsCss).not.toContain("filter: blur(4px);");
|
||||
});
|
||||
|
||||
it("keeps legacy tab triggers connected to the configured corner style", () => {
|
||||
|
||||
Reference in new issue
Block a user