Skip to content

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

fix: style (#11167)

Liu Ji65890daffe5c
diff --git a/frontend/src/components/SQLReview/SQLReviewCreation.vue b/frontend/src/components/SQLReview/SQLReviewCreation.vue
index 489db7b486..472d3c411f 100644
--- a/frontend/src/components/SQLReview/SQLReviewCreation.vue
+++ b/frontend/src/components/SQLReview/SQLReviewCreation.vue
@@ -1,11 +1,14 @@
<template>
- <div>
+ <div class="-my-4">
<StepTab
:sticky="true"
:current-index="state.currentStep"
:step-list="STEP_LIST"
:allow-next="allowNext"
:finish-title="$t(`common.confirm-and-${policy ? 'update' : 'add'}`)"
+ header-class="!-top-4"
+ footer-class="!-bottom-4 !pt-4"
+ pane-class="!mb-4"
@update:current-index="changeStepIndex"
@cancel="onCancel"
@finish="tryFinishSetup"
diff --git a/frontend/src/components/v2/Form/StepTab.vue b/frontend/src/components/v2/Form/StepTab.vue
index 03c2bce41f..abf237e142 100644
--- a/frontend/src/components/v2/Form/StepTab.vue
+++ b/frontend/src/components/v2/Form/StepTab.vue
@@ -1,6 +1,12 @@
<template>
<div v-bind="$attrs" :class="[!sticky && 'space-y-8']">
- <div :class="['px-0.5', sticky && 'pt-2 pb-4 sticky top-0 bg-white z-10']">
+ <div
+ :class="[
+ 'px-0.5',
+ sticky && 'pt-2 pb-4 sticky top-0 bg-white z-10',
+ headerClass,
+ ]"
+ >
<NSteps :current="currentIndex + 1" size="small" :status="'process'">
<NStep
v-for="(step, i) in stepList"
@@ -81,6 +87,7 @@ withDefaults(
sticky?: boolean;
finishTitle?: string;
paneClass?: VueClass;
+ headerClass?: VueClass;
footerClass?: VueClass;
stepList: { title: string; description?: string; hideNext?: boolean }[];
backButtonProps?: ButtonProps;
@@ -93,6 +100,7 @@ withDefaults(
sticky: false,
finishTitle: "bbkit.common.finish",
paneClass: undefined,
+ headerClass: undefined,
footerClass: undefined,
backButtonProps: undefined,
nextButtonProps: undefined,