Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: optimize plan config (#17516)

ecmadao5b8eeafddb74
diff --git a/frontend/src/components/Plan/components/Configuration/Configuration.vue b/frontend/src/components/Plan/components/Configuration/Configuration.vue
index 34927e4d14..a95b8a81f2 100644
--- a/frontend/src/components/Plan/components/Configuration/Configuration.vue
+++ b/frontend/src/components/Plan/components/Configuration/Configuration.vue
@@ -5,7 +5,7 @@
{{ $t("plan.options.self") }}
</h3>
</div>
- <div class="space-y-4">
+ <div class="space-y-4 w-full xl:max-w-[60vw]">
<InstanceRoleSection v-if="shouldShowInstanceRoleSection" />
<TransactionModeSection v-if="shouldShowTransactionModeSection" />
<IsolationLevelSection v-if="shouldShowIsolationLevelSection" />
diff --git a/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue b/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue
index 414405363b..18dd68f760 100644
--- a/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue
@@ -1,7 +1,6 @@
<template>
<div class="flex flex-col items-start gap-1">
- <div class="w-full flex items-center gap-3">
- <GhostSwitch />
+ <div class="w-full flex items-center justify-between gap-3">
<div class="flex items-center gap-1">
<label class="text-sm text-main">
{{ $t("task.online-migration.self") }}
@@ -28,21 +27,22 @@
</i18n-t>
</template>
</NTooltip>
+ <NButton
+ v-if="enabled && allowChange"
+ tag="div"
+ size="tiny"
+ style="--n-padding: 0 5px"
+ @click="showFlagsPanel = true"
+ >
+ <template #icon>
+ <WrenchIcon class="w-4 h-4" />
+ </template>
+ <template #default>
+ {{ $t("task.online-migration.configure") }}
+ </template>
+ </NButton>
</div>
- <NButton
- v-if="enabled && allowChange"
- tag="div"
- size="tiny"
- style="--n-padding: 0 5px"
- @click="showFlagsPanel = true"
- >
- <template #icon>
- <WrenchIcon class="w-4 h-4" />
- </template>
- <template #default>
- {{ $t("task.online-migration.configure") }}
- </template>
- </NButton>
+ <GhostSwitch />
</div>
<GhostFlagsPanel
diff --git a/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSection.vue b/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSection.vue
index 89931de333..b40e21bc9e 100644
--- a/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSection.vue
@@ -1,5 +1,5 @@
<template>
- <div class="w-full flex items-center gap-3">
+ <div class="w-full flex items-center justify-between gap-3">
<div class="flex items-center gap-1">
<label class="text-sm text-main">
{{ $t("common.role.self") }}
diff --git a/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSection.vue b/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSection.vue
index 6cce0d4089..059d9b05c5 100644
--- a/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSection.vue
@@ -1,5 +1,8 @@
<template>
- <div v-if="shouldShowCombined" class="w-full flex items-center gap-3">
+ <div
+ v-if="shouldShowCombined"
+ class="w-full flex items-center justify-between gap-3"
+ >
<div class="flex items-center gap-1">
<label class="text-sm text-main">
{{ $t("plan.isolation-level.self") }}
diff --git a/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSection.vue b/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSection.vue
index ec35cbef1c..a61cfac24d 100644
--- a/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSection.vue
@@ -1,6 +1,5 @@
<template>
- <div class="w-full flex items-center gap-3">
- <PreBackupSwitch />
+ <div class="w-full flex items-center justify-between gap-3">
<div class="flex items-center gap-1">
<label class="text-sm text-main">
{{ $t("task.prior-backup") }}
@@ -18,6 +17,7 @@
</template>
</NTooltip>
</div>
+ <PreBackupSwitch />
</div>
</template>
diff --git a/frontend/src/components/Plan/components/Configuration/TransactionModeSection/TransactionModeSection.vue b/frontend/src/components/Plan/components/Configuration/TransactionModeSection/TransactionModeSection.vue
index f390a56a67..638a4eed5f 100644
--- a/frontend/src/components/Plan/components/Configuration/TransactionModeSection/TransactionModeSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/TransactionModeSection/TransactionModeSection.vue
@@ -1,6 +1,5 @@
<template>
- <div class="w-full flex items-center gap-3">
- <TransactionModeSwitch />
+ <div class="w-full flex items-center justify-between gap-3">
<div class="flex items-center gap-1">
<label class="text-sm text-main">
{{ $t("issue.transaction-mode.label") }}
@@ -26,6 +25,7 @@
</template>
</NTooltip>
</div>
+ <TransactionModeSwitch />
</div>
</template>