fix(docs): clear docs dialog close button overlap

This commit is contained in:
jearhe authored and GitHub committed 2026-09-05 00:41:59 +08:00
1 parent 23a4ca8903
commit c258fe86be
2 files changed
+11 -1

No files matched your search

@@ -207,7 +207,7 @@ watch(
<template>
<Dialog v-model:open="open">
<DialogContent class="w-[94vw] max-w-[94vw] sm:max-w-[94vw] md:max-w-[94vw] lg:max-w-[94vw] xl:max-w-[94vw] h-[86vh] max-h-[86vh] gap-0 p-0 overflow-hidden flex flex-col">
<DialogHeader class="px-4 py-3 border-b">
<DialogHeader class="px-4 py-3 border-b pr-12">
<DialogTitle class="flex items-center gap-2">
<span>{{ t("docs.title") }}</span>
<span v-if="statusLabel" class="text-xs font-normal" :class="status.state === 'failed' ? 'text-destructive' : 'text-muted-foreground'">
@@ -0,0 +1,10 @@
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
const dialogSource = readFileSync(new URL("../DatabaseDocsDialog.vue", import.meta.url), "utf8");
describe("DatabaseDocsDialog layout", () => {
it("reserves header space for the absolute close button", () => {
expect(dialogSource).toMatch(/<DialogHeader class="[^"]*\bpr-12\b[^"]*">/);
});
});