Skip to content

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

chore: update create branch button position (#8382)

boojacke4ee645e71a6
diff --git a/frontend/src/components/Branch/BranchDetailView.vue b/frontend/src/components/Branch/BranchDetailView.vue
index ebb4e87e8d..f98ce511f1 100644
--- a/frontend/src/components/Branch/BranchDetailView.vue
+++ b/frontend/src/components/Branch/BranchDetailView.vue
@@ -46,7 +46,9 @@
<div class="w-full flex flex-row justify-between items-center mt-1 gap-4">
<div class="flex flex-row justify-start items-center opacity-80">
- <span class="mr-4">{{ $t("schema-designer.baseline-version") }}:</span>
+ <span class="mr-4 shrink-0"
+ >{{ $t("schema-designer.baseline-version") }}:</span
+ >
<DatabaseInfo
class="flex-nowrap mr-4 shrink-0"
:database="baselineDatabase"
diff --git a/frontend/src/views/branch/BranchDashboard.vue b/frontend/src/views/branch/BranchDashboard.vue
index e33acdadd2..a0e1d4bc0c 100644
--- a/frontend/src/views/branch/BranchDashboard.vue
+++ b/frontend/src/views/branch/BranchDashboard.vue
@@ -1,11 +1,8 @@
<template>
<div class="space-y-3 pt-2 w-full overflow-x-auto">
<div class="w-full px-4 flex flex-row justify-between items-center">
- <div class="flex flex-row justify-start items-center space-x-2">
- <NButton type="primary" @click="handleCreateBranch">
- <heroicons-solid:plus class="w-4 h-auto mr-0.5" />
- <span>{{ $t("database.new-branch") }}</span>
- </NButton>
+ <div>
+ <!-- Placeholder -->
</div>
<div class="flex flex-row justify-end items-center gap-x-2">
<NInput
@@ -14,6 +11,10 @@
clearable
:placeholder="$t('schema-designer.action.filter-by-name')"
/>
+ <NButton type="primary" @click="handleCreateBranch">
+ <heroicons-solid:plus class="w-4 h-auto mr-0.5" />
+ <span>{{ $t("database.new-branch") }}</span>
+ </NButton>
</div>
</div>