fix(desktop): improve legacy WebKit compatibility and database icons
This commit is contained in:
19 files changed
+610
-29
No files matched your search
@@ -5,6 +5,8 @@ const globalsCss = readFileSync(new URL("../globals.css", import.meta.url), "utf
|
||||
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 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");
|
||||
|
||||
describe("legacy WebView CSS fallbacks", () => {
|
||||
it("scopes component overrides to WebViews without OKLCH support", () => {
|
||||
@@ -46,4 +48,12 @@ describe("legacy WebView CSS fallbacks", () => {
|
||||
|
||||
expect(tabsTriggerRule).toContain("border-radius: var(--dbx-radius-fixed-6);");
|
||||
});
|
||||
|
||||
it("loads connection dialog media fallbacks without CSS transformation", () => {
|
||||
expect(desktopIndexSource).toContain('href="/connection-dialog-legacy.css"');
|
||||
expect(connectionDialogLegacyCss).toContain("@media (min-width: 640px)");
|
||||
expect(connectionDialogLegacyCss).toContain("@media (min-width: 1024px)");
|
||||
expect(connectionDialogLegacyCss).not.toContain("width >=");
|
||||
expect(connectionDialogSource).not.toContain("@media (min-width: 640px)");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user