Skip to content

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

chore: unify button spacing (#17822)

ecmadao4171c9e631fe
diff --git a/CLAUDE.md b/CLAUDE.md
index b6b7882bad..a4cbc315cd 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -120,6 +120,7 @@ psql -U bbdev bbdev
- Follow TypeScript style with strict type checking
- **i18n**: All user-facing display text in the UI must be defined and maintained in `./frontend/src/locales/en-US.json` using the i18n internationalization system. Do not hardcode any display strings directly in the source code
+- **Button Spacing**: Use `gap-x-2` for ALL button groups (modals, drawers, toolbars, inline actions). Never use `space-x` for buttons. See `./frontend/.claude/BUTTON_SPACING_STANDARDIZATION.md` for full guidelines
### Naming
diff --git a/frontend/.claude/BUTTON_SPACING_STANDARDIZATION.md b/frontend/.claude/BUTTON_SPACING_STANDARDIZATION.md
new file mode 100644
index 0000000000..f64b1a9641
--- /dev/null
+++ b/frontend/.claude/BUTTON_SPACING_STANDARDIZATION.md
@@ -0,0 +1,124 @@
+# Button Spacing Standardization Plan
+
+## Executive Summary
+
+This document outlines the plan to standardize button spacing across the Bytebase frontend codebase. Currently, button spacing is inconsistent, using both `space-x` and `gap-x` utilities with varying values (1-6).
+
+## Current State Analysis
+
+### Statistics
+- **Total occurrences**: 616+ spacing utilities in Vue files
+ - `space-x-*`: 199 occurrences across 134 files
+ - `gap-x-*`: 417 occurrences across 255 files
+
+### Issues Identified
+
+1. **Mixed Utilities**: Both `space-x` and `gap-x` used interchangeably
+2. **Inconsistent Values**: Multiple spacing values for similar contexts
+3. **No Clear Standards**: No documented guidelines for when to use which spacing
+
+### Common Patterns Found
+
+**Modal/Drawer Footers:**
+- `space-x-2` (older components)
+- `gap-x-3` (newer components)
+- `space-x-3` (mixed)
+
+**Toolbar Actions:**
+- `space-x-2`
+- `gap-x-2`
+
+**Inline Button Groups:**
+- Values range from `1` to `4`
+
+## Proposed Standards
+
+### 1. Utility Choice: Use `gap-x` Over `space-x`
+
+**Rationale:**
+- `gap-x` works better with flexbox and grid layouts
+- `gap-x` doesn't add spacing to the last child (cleaner)
+- Newer components already prefer `gap-x`
+- Better browser support for modern CSS
+
+### 2. Simplified Spacing Standard
+
+**ONE STANDARD TO RULE THEM ALL:**
+
+| Value | Pixels | Use Case |
+|-------|--------|----------|
+| `gap-x-2` | 8px | **ALL button groups** (modals, drawers, toolbars, inline actions) |
+
+**Optional (Rare cases only - use sparingly):**
+
+| Value | Pixels | Use Case | Example |
+|-------|--------|----------|---------|
+| `gap-x-1` | 4px | Extremely tight spacing when space is critical | Dense icon toolbars (rare) |
+
+**Why This Simplification?**
+- ✅ **Easier to remember**: One standard for all button groups
+- ✅ **Easier to maintain**: No need to decide between gap-x-2 vs gap-x-3
+- ✅ **Consistent UX**: Uniform spacing across the entire application
+- ✅ **Faster implementation**: Less decision-making during migration
+- ✅ **Simpler code reviews**: Clear yes/no - is it gap-x-2?
+
+### 3. Context-Specific Guidelines
+
+#### Modal/Drawer Footers (Action Buttons)
+```vue
+<!-- ✅ STANDARD: Use gap-x-2 for modal/drawer footers -->
+<div class="flex justify-end gap-x-2">
+ <NButton @click="cancel">Cancel</NButton>
+ <NButton type="primary" @click="confirm">Confirm</NButton>
+</div>
+```
+
+#### Inline Action Buttons
+```vue
+<!-- ✅ STANDARD: Use gap-x-2 for inline action buttons -->
+<div class="flex items-center gap-x-2">
+ <NButton>Edit</NButton>
+ <NButton>Delete</NButton>
+</div>
+```
+
+#### Toolbar Actions
+```vue
+<!-- ✅ STANDARD: Use gap-x-2 for toolbar buttons -->
+<div class="flex items-center gap-x-2">
+ <NButton>Export</NButton>
+ <NButton>Import</NButton>
+ <NButton type="primary">Create</NButton>
+</div>
+```
+
+#### Icon Button Groups (Optional - Only When Space is Critical)
+```vue
+<!-- ⚠️ OPTIONAL: Use gap-x-1 only for very tight icon groups -->
+<div class="flex items-center gap-x-1">
+ <NButton quaternary circle><Icon /></NButton>
+ <NButton quaternary circle><Icon /></NButton>
+</div>
+
+<!-- ✅ PREFERRED: Use gap-x-2 even for icons when possible -->
+<div class="flex items-center gap-x-2">
+ <NButton quaternary circle><Icon /></NButton>
+ <NButton quaternary circle><Icon /></NButton>
+</div>
+```
+
+## Exceptions & Special Cases
+
+### When NOT to Change
+
+1. **Third-party components** - Don't modify vendored code
+2. **Intentional tight spacing** - Document why if < gap-x-1
+3. **Responsive designs** - May need different spacing at breakpoints
+4. **Legacy compatibility** - If component is being deprecated
+
+### Non-Button Spacing
+
+This plan focuses on button groups. Other spacing contexts:
+- Form field spacing: Separate guideline
+- List item spacing: Separate guideline
+- Card spacing: Separate guideline
diff --git a/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue b/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
index 160d19b8c4..2ab37c24ce 100644
--- a/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
+++ b/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
@@ -48,7 +48,7 @@
class="w-full h-full shrink-0 flex flex-row justify-between items-center"
>
<div>{{ $t("sql-editor.self") }}</div>
- <div class="flex flex-row justify-end items-center space-x-3">
+ <div class="flex flex-row justify-end items-center gap-x-2">
<SQLUploadButton
:loading="state.isUploadingFile"
@update:sql="(statement) => (state.editStatement = statement)"
@@ -85,7 +85,7 @@
<div class="w-full flex flex-row justify-between items-center">
<div class="flex flex-row items-center text-sm text-gray-500"></div>
- <div class="flex justify-end items-center space-x-3">
+ <div class="flex justify-end items-center gap-x-2">
<NButton @click="dismissModal">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/Database/DatabaseChangelogPanel.vue b/frontend/src/components/Database/DatabaseChangelogPanel.vue
index 97e5cb990e..6414480162 100644
--- a/frontend/src/components/Database/DatabaseChangelogPanel.vue
+++ b/frontend/src/components/Database/DatabaseChangelogPanel.vue
@@ -12,7 +12,7 @@
<ChangeTypeSelect v-model:change-type="state.selectedChangeType" />
</div>
</div>
- <div class="flex flex-row justify-end items-center grow space-x-2">
+ <div class="flex flex-row justify-end items-center grow gap-x-2">
<BBSpin
v-if="state.loading"
:size="20"
diff --git a/frontend/src/components/FeatureGuard/FeatureModal.vue b/frontend/src/components/FeatureGuard/FeatureModal.vue
index 70cd219ef1..765a539ad7 100644
--- a/frontend/src/components/FeatureGuard/FeatureModal.vue
+++ b/frontend/src/components/FeatureGuard/FeatureModal.vue
@@ -58,7 +58,7 @@
</i18n-t>
</p>
</div>
- <div class="mt-7 flex justify-end space-x-2">
+ <div class="mt-7 flex justify-end gap-x-2">
<NButton
v-if="!hasPermission"
type="primary"
diff --git a/frontend/src/components/FileContentPreviewModal.vue b/frontend/src/components/FileContentPreviewModal.vue
index 98cf0e3f77..eeb98552f1 100644
--- a/frontend/src/components/FileContentPreviewModal.vue
+++ b/frontend/src/components/FileContentPreviewModal.vue
@@ -20,7 +20,7 @@
/>
<NSpin v-if="isLoading" class="absolute inset-0" />
</div>
- <div class="w-full flex justify-end space-x-2">
+ <div class="w-full flex justify-end gap-x-2">
<NButton @click="$emit('cancel')">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/IAMRemindModal.vue b/frontend/src/components/IAMRemindModal.vue
index a41bb9fd70..ef2ce9aeee 100644
--- a/frontend/src/components/IAMRemindModal.vue
+++ b/frontend/src/components/IAMRemindModal.vue
@@ -22,7 +22,7 @@
</span>
</NCheckbox>
- <div class="mt-7 flex justify-end space-x-2">
+ <div class="mt-7 flex justify-end gap-x-2">
<NButton @click="onClose">
{{ $t("common.dismiss") }}
</NButton>
diff --git a/frontend/src/components/InstanceAssignment.vue b/frontend/src/components/InstanceAssignment.vue
index 69848836f7..1402c68acc 100644
--- a/frontend/src/components/InstanceAssignment.vue
+++ b/frontend/src/components/InstanceAssignment.vue
@@ -42,7 +42,7 @@
<template #footer>
<div class="w-full flex justify-between items-center">
- <div class="w-full flex justify-end items-center gap-x-3">
+ <div class="w-full flex justify-end items-center gap-x-2">
<NButton @click.prevent="cancel">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/InstanceForm/Buttons.vue b/frontend/src/components/InstanceForm/Buttons.vue
index 8061beda24..0c91d23e0a 100644
--- a/frontend/src/components/InstanceForm/Buttons.vue
+++ b/frontend/src/components/InstanceForm/Buttons.vue
@@ -1,7 +1,7 @@
<template>
<template v-if="isCreating">
<div class="w-full flex justify-between items-center" v-bind="$attrs">
- <div class="w-full flex justify-end items-center gap-x-3">
+ <div class="w-full flex justify-end items-center gap-x-2">
<NButton
v-if="allowCancel"
quaternary
diff --git a/frontend/src/components/LabelEditorDrawer.vue b/frontend/src/components/LabelEditorDrawer.vue
index 73eafe93d3..92b452ede2 100644
--- a/frontend/src/components/LabelEditorDrawer.vue
+++ b/frontend/src/components/LabelEditorDrawer.vue
@@ -12,7 +12,7 @@
/>
<template #footer>
<div class="w-full flex justify-between items-center">
- <div class="w-full flex justify-end items-center gap-x-3">
+ <div class="w-full flex justify-end items-center gap-x-2">
<NButton @click.prevent="$emit('dismiss')">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/Plan/components/Configuration/GhostSection/GhostFlagsPanel.vue b/frontend/src/components/Plan/components/Configuration/GhostSection/GhostFlagsPanel.vue
index 8657967be8..54870fcf43 100644
--- a/frontend/src/components/Plan/components/Configuration/GhostSection/GhostFlagsPanel.vue
+++ b/frontend/src/components/Plan/components/Configuration/GhostSection/GhostFlagsPanel.vue
@@ -17,7 +17,7 @@
</div>
</template>
<template #footer>
- <div class="flex flex-row justify-end gap-x-3">
+ <div class="flex flex-row justify-end gap-x-2">
<NButton @click="close">{{ $t("common.cancel") }}</NButton>
<NTooltip :disabled="errors.length === 0">
<template #trigger>
diff --git a/frontend/src/components/Plan/components/HeaderSection/Actions/panels/IssueStatusActionPanel.vue b/frontend/src/components/Plan/components/HeaderSection/Actions/panels/IssueStatusActionPanel.vue
index 5f19f169b2..0c2e27fe4d 100644
--- a/frontend/src/components/Plan/components/HeaderSection/Actions/panels/IssueStatusActionPanel.vue
+++ b/frontend/src/components/Plan/components/HeaderSection/Actions/panels/IssueStatusActionPanel.vue
@@ -39,7 +39,7 @@
class="w-full flex flex-row justify-between items-center gap-2"
>
<div></div>
- <div class="flex justify-end gap-x-3">
+ <div class="flex justify-end gap-x-2">
<NButton quaternary @click="$emit('close')">
{{ $t("common.close") }}
</NButton>
diff --git a/frontend/src/components/ReleaseRemindModal.vue b/frontend/src/components/ReleaseRemindModal.vue
index 2dda67d0cf..5518170b1b 100644
--- a/frontend/src/components/ReleaseRemindModal.vue
+++ b/frontend/src/components/ReleaseRemindModal.vue
@@ -16,7 +16,7 @@
</i18n-t>
</p>
</div>
- <div class="mt-7 flex justify-end space-x-2">
+ <div class="mt-7 flex justify-end gap-x-2">
<NButton @click="onClose">
{{ $t("common.dismiss") }}
</NButton>
diff --git a/frontend/src/components/Role/Setting/components/RoleDataTable/cells/RoleOperationsCell.vue b/frontend/src/components/Role/Setting/components/RoleDataTable/cells/RoleOperationsCell.vue
index 2c984c14cc..e2ae87b7d6 100644
--- a/frontend/src/components/Role/Setting/components/RoleDataTable/cells/RoleOperationsCell.vue
+++ b/frontend/src/components/Role/Setting/components/RoleDataTable/cells/RoleOperationsCell.vue
@@ -1,5 +1,5 @@
<template>
- <div v-if="isCustomRole(role.name)" class="w-full flex justify-end space-x-2">
+ <div v-if="isCustomRole(role.name)" class="w-full flex justify-end gap-x-2">
<NButton size="tiny" :disabled="!allowUpdate" @click="$emit('edit', role)">
{{ $t("common.edit") }}
</NButton>
diff --git a/frontend/src/components/SchemaEditorLite/Modals/ActionConfirmModal.vue b/frontend/src/components/SchemaEditorLite/Modals/ActionConfirmModal.vue
index 1ea62a872a..0a572a7ea0 100644
--- a/frontend/src/components/SchemaEditorLite/Modals/ActionConfirmModal.vue
+++ b/frontend/src/components/SchemaEditorLite/Modals/ActionConfirmModal.vue
@@ -8,7 +8,7 @@
<div class="w-80 mb-6">
<p>{{ props.description }}</p>
</div>
- <div class="w-full flex items-center justify-end mt-2 gap-x-3">
+ <div class="w-full flex items-center justify-end mt-2 gap-x-2">
<NButton v-bind="negativeButtonProps" @click="dismissModal">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/SchemaEditorLite/Modals/FunctionNameModal.vue b/frontend/src/components/SchemaEditorLite/Modals/FunctionNameModal.vue
index f45d9d4bb0..7b56dd9460 100644
--- a/frontend/src/components/SchemaEditorLite/Modals/FunctionNameModal.vue
+++ b/frontend/src/components/SchemaEditorLite/Modals/FunctionNameModal.vue
@@ -17,7 +17,7 @@
:autofocus="true"
/>
</div>
- <div class="w-full flex items-center justify-end mt-2 space-x-3">
+ <div class="w-full flex items-center justify-end mt-2 gap-x-2">
<NButton @click="dismissModal">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/SchemaEditorLite/Modals/ProcedureNameModal.vue b/frontend/src/components/SchemaEditorLite/Modals/ProcedureNameModal.vue
index ed01d9d88e..e1dd5062f0 100644
--- a/frontend/src/components/SchemaEditorLite/Modals/ProcedureNameModal.vue
+++ b/frontend/src/components/SchemaEditorLite/Modals/ProcedureNameModal.vue
@@ -17,7 +17,7 @@
:autofocus="true"
/>
</div>
- <div class="w-full flex items-center justify-end mt-2 space-x-3">
+ <div class="w-full flex items-center justify-end mt-2 gap-x-2">
<NButton @click="dismissModal">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/SchemaEditorLite/Modals/SchemaNameModal.vue b/frontend/src/components/SchemaEditorLite/Modals/SchemaNameModal.vue
index 5025615c30..73a95ecc18 100644
--- a/frontend/src/components/SchemaEditorLite/Modals/SchemaNameModal.vue
+++ b/frontend/src/components/SchemaEditorLite/Modals/SchemaNameModal.vue
@@ -13,7 +13,7 @@
:autofocus="true"
/>
</div>
- <div class="w-full flex items-center justify-end mt-2 space-x-3">
+ <div class="w-full flex items-center justify-end mt-2 gap-x-2">
<NButton @click="dismissModal">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/SchemaEditorLite/Modals/TableNameModal.vue b/frontend/src/components/SchemaEditorLite/Modals/TableNameModal.vue
index 151a6db0a1..b43134e377 100644
--- a/frontend/src/components/SchemaEditorLite/Modals/TableNameModal.vue
+++ b/frontend/src/components/SchemaEditorLite/Modals/TableNameModal.vue
@@ -17,7 +17,7 @@
:autofocus="true"
/>
</div>
- <div class="w-full flex items-center justify-end mt-2 space-x-3">
+ <div class="w-full flex items-center justify-end mt-2 gap-x-2">
<NButton @click="dismissModal">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/SchemaEditorLite/Modals/ViewNameModal.vue b/frontend/src/components/SchemaEditorLite/Modals/ViewNameModal.vue
index 5b27624da8..7fc0816b31 100644
--- a/frontend/src/components/SchemaEditorLite/Modals/ViewNameModal.vue
+++ b/frontend/src/components/SchemaEditorLite/Modals/ViewNameModal.vue
@@ -17,7 +17,7 @@
:autofocus="true"
/>
</div>
- <div class="w-full flex items-center justify-end mt-2 space-x-3">
+ <div class="w-full flex items-center justify-end mt-2 gap-x-2">
<NButton @click="dismissModal">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue b/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue
index cc18f95398..b384e768a1 100644
--- a/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue
+++ b/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue
@@ -195,7 +195,7 @@
<template #footer>
<div class="w-full flex justify-between items-center">
- <div class="w-full flex justify-end items-center gap-x-3">
+ <div class="w-full flex justify-end items-center gap-x-2">
<NButton @click.prevent="$emit('dismiss')">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/SchemaTemplate/TableTemplateForm.vue b/frontend/src/components/SchemaTemplate/TableTemplateForm.vue
index b723fc76ff..a741e48da6 100644
--- a/frontend/src/components/SchemaTemplate/TableTemplateForm.vue
+++ b/frontend/src/components/SchemaTemplate/TableTemplateForm.vue
@@ -132,7 +132,7 @@
<template #footer>
<div class="w-full flex justify-between items-center">
- <div class="w-full flex justify-end items-center gap-x-3">
+ <div class="w-full flex justify-end items-center gap-x-2">
<NButton @click.prevent="$emit('dismiss')">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/SensitiveData/GrantAccessForm.vue b/frontend/src/components/SensitiveData/GrantAccessForm.vue
index 8c1c52ab8c..88a4ef7449 100644
--- a/frontend/src/components/SensitiveData/GrantAccessForm.vue
+++ b/frontend/src/components/SensitiveData/GrantAccessForm.vue
@@ -79,7 +79,7 @@
</template>
<template #footer>
<div class="flex justify-end items-center">
- <div class="flex items-center gap-x-3">
+ <div class="flex items-center gap-x-2">
<NButton @click.prevent="onDismiss">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/SensitiveData/components/MaskingAlgorithmsCreateDrawer.vue b/frontend/src/components/SensitiveData/components/MaskingAlgorithmsCreateDrawer.vue
index 0fc947581e..c5a8b04971 100644
--- a/frontend/src/components/SensitiveData/components/MaskingAlgorithmsCreateDrawer.vue
+++ b/frontend/src/components/SensitiveData/components/MaskingAlgorithmsCreateDrawer.vue
@@ -272,7 +272,7 @@
</div>
<template #footer>
<div class="w-full flex justify-between items-center">
- <div class="w-full flex justify-end items-center gap-x-3">
+ <div class="w-full flex justify-end items-center gap-x-2">
<NButton @click.prevent="$emit('dismiss')">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/SensitiveData/components/SemanticTemplateDrawer.vue b/frontend/src/components/SensitiveData/components/SemanticTemplateDrawer.vue
index b5c8ff3716..76862026e2 100644
--- a/frontend/src/components/SensitiveData/components/SemanticTemplateDrawer.vue
+++ b/frontend/src/components/SensitiveData/components/SemanticTemplateDrawer.vue
@@ -19,7 +19,7 @@
</div>
<template #footer>
<div class="w-full flex justify-between items-center">
- <div class="w-full flex justify-end items-center gap-x-3">
+ <div class="w-full flex justify-end items-center gap-x-2">
<NButton @click.prevent="$emit('dismiss')">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/SensitiveData/components/SemanticTypesDrawer.vue b/frontend/src/components/SensitiveData/components/SemanticTypesDrawer.vue
index 3bee0c40ac..7713b9836a 100644
--- a/frontend/src/components/SensitiveData/components/SemanticTypesDrawer.vue
+++ b/frontend/src/components/SensitiveData/components/SemanticTypesDrawer.vue
@@ -12,7 +12,7 @@
</div>
<template #footer>
<div class="w-full flex justify-between items-center">
- <div class="w-full flex justify-end items-center gap-x-3">
+ <div class="w-full flex justify-end items-center gap-x-2">
<NButton @click.prevent="$emit('dismiss')">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/UploadFilesButton.vue b/frontend/src/components/UploadFilesButton.vue
index 5a346f406b..243ad1111d 100644
--- a/frontend/src/components/UploadFilesButton.vue
+++ b/frontend/src/components/UploadFilesButton.vue
@@ -31,7 +31,7 @@
<NUpload :file-list="uploadFileList" disabled trigger-class="!hidden">
</NUpload>
</div>
- <div class="w-full flex items-center justify-end mt-4 space-x-2">
+ <div class="w-full flex items-center justify-end mt-4 gap-x-2">
<NButton quaternary @click="closeModal">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/User/Settings/AADSyncDrawer.vue b/frontend/src/components/User/Settings/AADSyncDrawer.vue
index a04de0677b..8d2860c711 100644
--- a/frontend/src/components/User/Settings/AADSyncDrawer.vue
+++ b/frontend/src/components/User/Settings/AADSyncDrawer.vue
@@ -101,7 +101,7 @@
</div>
</template>
<template #footer>
- <div class="flex flex-row items-center justify-end gap-x-3">
+ <div class="flex flex-row items-center justify-end gap-x-2">
<NButton @click="$emit('close')">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/User/Settings/CreateGroupDrawer.vue b/frontend/src/components/User/Settings/CreateGroupDrawer.vue
index 7567a1f267..3b0ae566a0 100644
--- a/frontend/src/components/User/Settings/CreateGroupDrawer.vue
+++ b/frontend/src/components/User/Settings/CreateGroupDrawer.vue
@@ -111,7 +111,7 @@
</template>
</RemoveGroupButton>
- <div class="flex-1 flex flex-row items-center justify-end gap-x-3">
+ <div class="flex-1 flex flex-row items-center justify-end gap-x-2">
<NButton @click="$emit('close')">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/User/Settings/CreateUserDrawer.vue b/frontend/src/components/User/Settings/CreateUserDrawer.vue
index dd85dc6621..f0317bac8b 100644
--- a/frontend/src/components/User/Settings/CreateUserDrawer.vue
+++ b/frontend/src/components/User/Settings/CreateUserDrawer.vue
@@ -96,7 +96,7 @@
</div>
</template>
<template #footer>
- <div class="w-full flex flex-row items-center justify-end gap-x-3">
+ <div class="w-full flex flex-row items-center justify-end gap-x-2">
<NButton @click="$emit('close')">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/views/DatabaseDetail/DatabaseDetail.vue b/frontend/src/views/DatabaseDetail/DatabaseDetail.vue
index 95e6ff7fc8..9d61af8445 100644
--- a/frontend/src/views/DatabaseDetail/DatabaseDetail.vue
+++ b/frontend/src/views/DatabaseDetail/DatabaseDetail.vue
@@ -152,7 +152,7 @@
<div class="col-span-1 w-96">
{{ $t("database.incorrect-project-warning") }}
</div>
- <div class="pt-6 flex justify-end space-x-3">
+ <div class="pt-6 flex justify-end gap-x-2">
<NButton @click.prevent="state.showIncorrectProjectModal = false">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/views/EnvironmentDashboard.vue b/frontend/src/views/EnvironmentDashboard.vue
index 8bba53637b..5dd3a45529 100644
--- a/frontend/src/views/EnvironmentDashboard.vue
+++ b/frontend/src/views/EnvironmentDashboard.vue
@@ -22,7 +22,7 @@
/>
</NTabPane>
<template #suffix>
- <div class="flex items-center justify-end space-x-2 px-2 pb-1">
+ <div class="flex items-center justify-end gap-x-2 px-2 pb-1">
<NButton
v-if="
hasWorkspacePermissionV2('bb.settings.get') &&
diff --git a/frontend/src/views/SchemaTemplate/ColumnTypesUpdateFailedModal.vue b/frontend/src/views/SchemaTemplate/ColumnTypesUpdateFailedModal.vue
index 71ebbc5021..b81f969614 100644
--- a/frontend/src/views/SchemaTemplate/ColumnTypesUpdateFailedModal.vue
+++ b/frontend/src/views/SchemaTemplate/ColumnTypesUpdateFailedModal.vue
@@ -28,7 +28,7 @@
</div>
</div>
</div>
- <div class="mt-7 flex justify-end space-x-2">
+ <div class="mt-7 flex justify-end gap-x-2">
<NButton @click.prevent="$emit('close')">
{{ $t("schema-template.column-type-restriction.back-to-edit") }}
</NButton>
diff --git a/frontend/src/views/SettingWorkspaceIM.vue b/frontend/src/views/SettingWorkspaceIM.vue
index bcbdeb4475..a8cb26e907 100644
--- a/frontend/src/views/SettingWorkspaceIM.vue
+++ b/frontend/src/views/SettingWorkspaceIM.vue
@@ -27,7 +27,7 @@
</div>
</NTabPane>
</NTabs>
- <div class="flex items-center justify-end space-x-2 pt-2">
+ <div class="flex items-center justify-end gap-x-2 pt-2">
<NButton
v-if="dataChanged"
:disabled="state.loading"
diff --git a/frontend/src/views/SettingWorkspaceSQLReview.vue b/frontend/src/views/SettingWorkspaceSQLReview.vue
index 3f527b0866..1ea832946a 100644
--- a/frontend/src/views/SettingWorkspaceSQLReview.vue
+++ b/frontend/src/views/SettingWorkspaceSQLReview.vue
@@ -12,7 +12,7 @@
</a>
</div>
- <div class="flex justify-end items-center space-x-2">
+ <div class="flex justify-end items-center gap-x-2">
<SearchBox
v-model:value="searchText"
style="max-width: 100%"
diff --git a/frontend/src/views/auth/InactiveRemindModal.vue b/frontend/src/views/auth/InactiveRemindModal.vue
index 0007f4d52e..702c7725a6 100644
--- a/frontend/src/views/auth/InactiveRemindModal.vue
+++ b/frontend/src/views/auth/InactiveRemindModal.vue
@@ -20,7 +20,7 @@
}}
</span>
</div>
- <div class="w-full flex items-center justify-end space-x-3">
+ <div class="w-full flex items-center justify-end gap-x-2">
<NButton quaternary @click="logout">
{{ $t("common.logout") }}
</NButton>
diff --git a/frontend/src/views/sql-editor/EditorCommon/ExecuteHint.vue b/frontend/src/views/sql-editor/EditorCommon/ExecuteHint.vue
index 28cdc3c496..0f44826df7 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ExecuteHint.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ExecuteHint.vue
@@ -27,11 +27,11 @@
<div class="execute-hint-content mt-4 flex justify-between">
<div
v-if="actions.issue && actions.admin"
- class="flex justify-start items-center space-x-2"
+ class="flex justify-start items-center gap-x-2"
>
<AdminModeButton @enter="$emit('close')" />
</div>
- <div class="flex flex-1 justify-end items-center space-x-2">
+ <div class="flex flex-1 justify-end items-center gap-x-2">
<NButton @click="handleClose">{{ $t("common.close") }}</NButton>
<NButton
v-if="actions.issue"
diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/ResultViewV1.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/ResultViewV1.vue
index 3bccd9dd7f..ef97369cf0 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/ResultViewV1.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/ResultViewV1.vue
@@ -37,7 +37,7 @@
<template #tab>
<NTooltip>
<template #trigger>
- <div class="flex items-center space-x-2">
+ <div class="flex items-center gap-x-2">
<span>{{ tabName(i) }}</span>
<Info
v-if="result.error"
diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue
index 75e3d284c9..75cf0477d4 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue
@@ -43,7 +43,7 @@
<span class="ml-2">{{ $t("sql-editor.rows-upper-limit") }}</span>
</span>
</div>
- <div class="flex justify-between items-center shrink-0 gap-x-3">
+ <div class="flex justify-between items-center shrink-0 gap-x-2">
<div class="flex items-center">
<NSwitch v-model:value="state.vertical" size="small" />
<span class="ml-1 whitespace-nowrap text-sm text-gray-500">
@@ -143,7 +143,7 @@
<div
class="w-full flex items-center justify-between text-xs mt-1 gap-x-4 text-control-light"
>
- <div class="flex flex-1 items-center space-x-2">
+ <div class="flex flex-1 items-center gap-x-2">
<RichDatabaseName :database="database" />
<NTooltip :disabled="!isSupported">
<template #trigger>
@@ -157,7 +157,7 @@
{{ $t("common.click-to-copy") }}
</NTooltip>
</div>
- <div class="shrink-0 space-x-2">
+ <div class="shrink-0 gap-x-2">
<NButton
v-if="showVisualizeButton"
text
diff --git a/frontend/src/views/sql-editor/EditorCommon/SaveSheetForm.vue b/frontend/src/views/sql-editor/EditorCommon/SaveSheetForm.vue
index c60d014d39..676b05ca5c 100644
--- a/frontend/src/views/sql-editor/EditorCommon/SaveSheetForm.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/SaveSheetForm.vue
@@ -7,7 +7,7 @@
@keyup.enter="handleSaveSheet"
/>
</div>
- <div class="mt-4 flex justify-end space-x-2">
+ <div class="mt-4 flex justify-end gap-x-2">
<NButton @click="emit('close')">{{ $t("common.close") }}</NButton>
<NButton type="primary" @click="handleSaveSheet">
{{ $t("common.save") }}
diff --git a/frontend/src/views/sql-editor/EditorCommon/SharePopover.vue b/frontend/src/views/sql-editor/EditorCommon/SharePopover.vue
index f81c35cced..84dd34fd10 100644
--- a/frontend/src/views/sql-editor/EditorCommon/SharePopover.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/SharePopover.vue
@@ -41,7 +41,7 @@
@click="handleChangeAccess(option)"
>
<div class="access-content--prefix">
- <div class="flex space-x-2 items-center">
+ <div class="flex gap-x-2 items-center">
<component :is="option.icon" class="h-5 w-5" />
<h2 class="text-md flex">
{{ option.label }}
diff --git a/frontend/src/views/sql-editor/EditorPanel/ResultPanel/ResultPanel.vue b/frontend/src/views/sql-editor/EditorPanel/ResultPanel/ResultPanel.vue
index 4d8e921af1..6651f6ec8c 100644
--- a/frontend/src/views/sql-editor/EditorPanel/ResultPanel/ResultPanel.vue
+++ b/frontend/src/views/sql-editor/EditorPanel/ResultPanel/ResultPanel.vue
@@ -22,7 +22,7 @@
<NTooltip>
<template #trigger>
<div
- class="flex items-center space-x-2"
+ class="flex items-center gap-x-2"
@contextmenu.stop.prevent="
handleContextMenuShow(context.id, $event)
"