fix(ui): support legacy WebView dialog viewports
This commit is contained in:
16 files changed
+74
-17
No files matched your search
@@ -268,7 +268,7 @@ function openResult(item: SearchResultItem) {
|
||||
|
||||
<template>
|
||||
<Dialog v-model:open="dialogOpen">
|
||||
<DialogScrollContent class="flex max-h-[calc(100dvh-6rem)] min-h-0 max-w-4xl flex-col overflow-hidden gap-0 p-0">
|
||||
<DialogScrollContent class="flex max-h-[calc(var(--dbx-viewport-height)-6rem)] min-h-0 max-w-4xl flex-col overflow-hidden gap-0 p-0">
|
||||
<DialogHeader class="shrink-0 border-b px-5 py-4">
|
||||
<DialogTitle class="flex items-center gap-2">
|
||||
<Search class="h-5 w-5" />
|
||||
|
||||
@@ -5,7 +5,7 @@ const dialogSource = readFileSync(new URL("../DatabaseSearchDialog.vue", import.
|
||||
|
||||
describe("DatabaseSearchDialog layout", () => {
|
||||
it("keeps the header and footer visible within the dynamic viewport", () => {
|
||||
expect(dialogSource).toContain('class="flex max-h-[calc(100dvh-6rem)] min-h-0 max-w-4xl flex-col overflow-hidden gap-0 p-0"');
|
||||
expect(dialogSource).toContain('class="flex max-h-[calc(var(--dbx-viewport-height)-6rem)] min-h-0 max-w-4xl flex-col overflow-hidden gap-0 p-0"');
|
||||
expect(dialogSource).toContain('<DialogHeader class="shrink-0 border-b px-5 py-4">');
|
||||
expect(dialogSource).toContain('<DialogFooter class="shrink-0 border-t px-5 py-3">');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user