Skip to content

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

chore: fix schema drift popup dialog style (#8669)

Liu Ji4946524929c5
diff --git a/frontend/src/components/AnomalyTable.vue b/frontend/src/components/AnomalyTable.vue
index f405118e6a..4ccf8ef700 100644
--- a/frontend/src/components/AnomalyTable.vue
+++ b/frontend/src/components/AnomalyTable.vue
@@ -52,18 +52,21 @@
</BBTable>
<BBModal
v-if="schemaDriftDetail"
- class="!max-w-[calc(100%-40px)] overflow-auto"
+ class="overflow-auto"
:title="`'${schemaDriftDetail.database.databaseName}' schema drift - ${schemaDriftDetail.payload?.recordVersion} vs Actual`"
@close="dismissModal"
>
- <div class="space-y-4">
+ <div
+ class="space-y-4 flex flex-col overflow-hidden"
+ style="width: calc(100vw - 10rem); height: calc(100vh - 12rem)"
+ >
<DiffEditor
- class="h-[64rem] max-h-full border rounded-md overflow-clip"
+ class="flex-1 w-full border rounded-md overflow-clip"
:original="schemaDriftDetail.payload?.expectedSchema"
:value="schemaDriftDetail.payload?.actualSchema"
:readonly="true"
/>
- <div class="flex justify-end px-4">
+ <div class="flex justify-end">
<button type="button" class="btn-primary" @click.prevent="dismissModal">
{{ $t("common.close") }}
</button>
diff --git a/frontend/src/views/ChangeHistoryDetail.vue b/frontend/src/views/ChangeHistoryDetail.vue
index f3b0224133..563aeb2754 100644
--- a/frontend/src/views/ChangeHistoryDetail.vue
+++ b/frontend/src/views/ChangeHistoryDetail.vue
@@ -245,14 +245,17 @@
</i18n-t>
</template>
- <div class="space-y-4">
- <code-diff
- class="w-full"
- :old-string="previousHistory.schema"
- :new-string="changeHistory.schema"
- output-format="side-by-side"
+ <div
+ class="space-y-4 flex flex-col overflow-hidden"
+ style="width: calc(100vw - 10rem); height: calc(100vh - 12rem)"
+ >
+ <DiffEditor
+ class="flex-1 w-full border rounded-md overflow-clip"
+ :original="previousHistory.schema"
+ :value="changeHistory.schema"
+ :readonly="true"
/>
- <div class="flex justify-end px-4">
+ <div class="flex justify-end">
<button
type="button"
class="btn-primary"