fix(editor): align manageGroups and execution-progress footers with p-0 dialog content
This commit is contained in:
1 parent
901f5ca3d4
commit
745f24322f
2 files changed
+12
-2
No files matched your search
@@ -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