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: add size to DatabaseDisplay (#16969)
boojackc279a609a3db
diff --git a/frontend/src/components/Plan/components/RolloutView/TaskView.vue b/frontend/src/components/Plan/components/RolloutView/TaskView.vueindex e71f90066c..1de9a394c9 100644--- a/frontend/src/components/Plan/components/RolloutView/TaskView.vue+++ b/frontend/src/components/Plan/components/RolloutView/TaskView.vue@@ -9,6 +9,7 @@<DatabaseDisplay:database="database.name":project="project.name"+ :size="'large'"/></div><div class="flex flex-row gap-x-2">diff --git a/frontend/src/components/Plan/components/common/DatabaseDisplay.vue b/frontend/src/components/Plan/components/common/DatabaseDisplay.vueindex 4e51f485a9..96fbd0865c 100644--- a/frontend/src/components/Plan/components/common/DatabaseDisplay.vue+++ b/frontend/src/components/Plan/components/common/DatabaseDisplay.vue@@ -1,9 +1,10 @@<template>- <div class="flex items-center text-sm truncate">+ <div :class="containerClass"><InstanceV1EngineIconv-if="instanceResource"class="inline-block mr-1":instance="instanceResource"+ :size="props.size || 'small'"/><span v-if="showEnvironment && environment" class="text-gray-500 mr-1">({{ environment.title }})@@ -11,9 +12,7 @@<span class="truncate text-gray-600">{{ instanceDisplayName }}</span>- <ChevronRightIcon- class="inline opacity-60 text-gray-500 w-4 h-4 shrink-0"- />+ <ChevronRightIcon :class="chevronClass" /><span class="truncate text-gray-800">{{ databaseDisplayName }}</span>@@ -22,6 +21,7 @@class="pl-2":to="databaseV1UrlWithProject(project, database)"target="_blank"+ @click.stop><ExternalLinkIcon :size="16" /></router-link>@@ -49,6 +49,7 @@ const props = defineProps<{database: string;project?: string;showEnvironment?: boolean;+ size?: "small" | "medium" | "large";}>();const environmentStore = useEnvironmentV1Store();@@ -97,4 +98,24 @@ const environment = computed(() => {return environmentStore.getEnvironmentByName(environmentName);});++const containerClass = computed(() => {+ const baseClass = "flex items-center truncate";+ const sizeClasses = {+ small: "text-xs",+ medium: "text-sm",+ large: "text-base",+ };+ return [baseClass, sizeClasses[props.size || "medium"]];+});++const chevronClass = computed(() => {+ const baseClass = "inline opacity-60 text-gray-500 shrink-0";+ const sizeClasses = {+ small: "w-3 h-3",+ medium: "w-4 h-4",+ large: "w-5 h-5",+ };+ return [baseClass, sizeClasses[props.size || "medium"]];+});</script>