Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: make title edit control consistent between branch and changelist (#8645)
Tianzhou (天舟)7f11205fcd3e
diff --git a/frontend/src/components/Branch/BranchDetailView.vue b/frontend/src/components/Branch/BranchDetailView.vueindex 7c092eb48e..135934053d 100644--- a/frontend/src/components/Branch/BranchDetailView.vue+++ b/frontend/src/components/Branch/BranchDetailView.vue@@ -207,8 +207,9 @@ const project = computed(() => {const titleInputStyle = computed(() => {const style: CSSProperties = {cursor: "default",+ minWidth: "10rem","--n-color-disabled": "transparent",- "--n-font-size": "16px",+ "--n-font-size": "20px",};const border = state.isEditingTitle? "1px solid var(--color-control-border)"diff --git a/frontend/src/views/Changelist/ChangelistDetail/NavBar/NavBar.vue b/frontend/src/views/Changelist/ChangelistDetail/NavBar/NavBar.vueindex f058799857..df5ed610d9 100644--- a/frontend/src/views/Changelist/ChangelistDetail/NavBar/NavBar.vue+++ b/frontend/src/views/Changelist/ChangelistDetail/NavBar/NavBar.vue@@ -1,11 +1,7 @@<template><div class="flex flex-row items-center justify-between gap-x-4">- <div class="flex-1 flex items-center justify-start overflow-hidden">- <ProjectV1Name :project="project" />- <span class="ml-3 mr-0.5">/</span>- <div class="flex-1 p-0.5 overflow-hidden truncate">- <TitleEditor />- </div>+ <div class="flex-1 p-0.5 overflow-hidden truncate">+ <TitleEditor /></div><div class="flex items-center justify-end gap-x-3"><template v-if="!reorderMode">@@ -29,7 +25,6 @@<script setup lang="ts">import { NButton } from "naive-ui";-import { ProjectV1Name } from "@/components/v2";import { useChangelistDetailContext } from "../context";import AddChangeButton from "./AddChangeButton.vue";import ApplyToDatabaseButton from "./ApplyToDatabaseButton.vue";@@ -38,7 +33,7 @@ import ReorderButton from "./ReorderButton.vue";import TitleEditor from "./TitleEditor.vue";import { useReorderChangelist } from "./reorder";-const { project, reorderMode } = useChangelistDetailContext();+const { reorderMode } = useChangelistDetailContext();const {begin: beginReorder,diff --git a/frontend/src/views/Changelist/ChangelistDetail/NavBar/TitleEditor.vue b/frontend/src/views/Changelist/ChangelistDetail/NavBar/TitleEditor.vueindex d2b24d0a63..1960042724 100644--- a/frontend/src/views/Changelist/ChangelistDetail/NavBar/TitleEditor.vue+++ b/frontend/src/views/Changelist/ChangelistDetail/NavBar/TitleEditor.vue@@ -1,5 +1,5 @@<template>- <span v-if="!allowEdit" class="text-sm ml-2 py-1 leading-[34px]">+ <span v-if="!allowEdit" class="text-xl font-bold ml-2 py-1 leading-[34px]">{{ state.title }}</span><NInput@@ -9,7 +9,6 @@:loading="state.isUpdating":disabled="!allowEdit || state.isUpdating"autosize- size="medium"required@focus="state.isEditing = true"@blur="onBlur"@@ -40,8 +39,7 @@ const style = computed(() => {cursor: "default",minWidth: "10rem","--n-color-disabled": "transparent",- "--n-padding-left": "0.5rem",- "--n-padding-right": "0.5rem",+ "--n-font-size": "20px",};const border = state.isEditing? "1px solid var(--color-control-border)"