mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-21 17:09:56 +00:00
fix(editor): align manageGroups and execution-progress footers with p-0 dialog content
This commit is contained in:
@@ -749,7 +749,7 @@ watch(
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<DialogFooter class="shrink-0 border-t px-5 py-3">
|
||||
<DialogFooter class="mx-0 mb-0 shrink-0 border-t px-5 py-3">
|
||||
<Button v-if="isExecuting" variant="destructive" class="gap-1.5" @click="execution.cancel()">
|
||||
<X class="h-4 w-4" />
|
||||
{{ t("multiDbExecute.cancelBatch") }}
|
||||
@@ -792,7 +792,7 @@ watch(
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<DialogFooter class="shrink-0 border-t px-5 py-3">
|
||||
<DialogFooter class="mx-0 mb-0 shrink-0 border-t px-5 py-3">
|
||||
<Button variant="outline" @click="manageGroups = false">{{ t("common.close") }}</Button>
|
||||
</DialogFooter>
|
||||
</div>
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const dialogSource = readFileSync(new URL("../MultiDbExecuteDialog.vue", import.meta.url), "utf8");
|
||||
|
||||
describe("MultiDbExecuteDialog footer layout", () => {
|
||||
it("keeps the target group manager close button aligned with the main dialog footer", () => {
|
||||
expect(dialogSource).toContain('<DialogFooter class="mx-0 mb-0 shrink-0 border-t px-5 py-3">\n <Button variant="outline" @click="manageGroups = false">');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user