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: tweak layout padding (#16385)
boojack52c73c51b587
diff --git a/frontend/src/components/IssueV1/components/Sidebar/Sidebar.vue b/frontend/src/components/IssueV1/components/Sidebar/Sidebar.vueindex ebfb1dec17..33a6fb5b51 100644--- a/frontend/src/components/IssueV1/components/Sidebar/Sidebar.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/Sidebar.vue@@ -7,7 +7,7 @@<template v-if="selectedSpec"><div class="border-t -mx-3" />- <NTooltip :arrow="false">+ <NTooltip :showArrow="false"><template #trigger><p class="textinfolabel -mb-2">{{ $t("plan.options.self") }}diff --git a/frontend/src/components/Plan/components/Sidebar/GhostSection/GhostSwitch.vue b/frontend/src/components/Plan/components/Sidebar/GhostSection/GhostSwitch.vueindex a89f48df42..343230ae0b 100644--- a/frontend/src/components/Plan/components/Sidebar/GhostSection/GhostSwitch.vue+++ b/frontend/src/components/Plan/components/Sidebar/GhostSection/GhostSwitch.vue@@ -1,5 +1,5 @@<template>- <NTooltip :disabled="!tooltipMessage" :arrow="false">+ <NTooltip :disabled="!tooltipMessage" :showArrow="false"><template #trigger><NSwitch:value="enabled"diff --git a/frontend/src/components/Plan/components/Sidebar/PreBackupSection/PreBackupSwitch.vue b/frontend/src/components/Plan/components/Sidebar/PreBackupSection/PreBackupSwitch.vueindex 5f8531016b..a602f9a83a 100644--- a/frontend/src/components/Plan/components/Sidebar/PreBackupSection/PreBackupSwitch.vue+++ b/frontend/src/components/Plan/components/Sidebar/PreBackupSection/PreBackupSwitch.vue@@ -1,6 +1,6 @@<template><div class="flex items-center">- <NTooltip :disabled="!tooltipMessage" :arrow="false">+ <NTooltip :disabled="!tooltipMessage" :showArrow="false"><template #trigger><NSwitch:value="enabled"diff --git a/frontend/src/components/Plan/components/Sidebar/Sidebar.vue b/frontend/src/components/Plan/components/Sidebar/Sidebar.vueindex 89dae171f1..61b50b388b 100644--- a/frontend/src/components/Plan/components/Sidebar/Sidebar.vue+++ b/frontend/src/components/Plan/components/Sidebar/Sidebar.vue@@ -1,6 +1,6 @@<template><div v-if="shouldShow" class="flex flex-col gap-y-3 py-2 px-3">- <NTooltip :arrow="false">+ <NTooltip :showArrow="false"><template #trigger><p class="textinfolabel -mb-1">{{ $t("plan.options.self") }}diff --git a/frontend/src/layouts/ProjectV1Layout.vue b/frontend/src/layouts/ProjectV1Layout.vueindex d71a7f88cd..4153ff9b99 100644--- a/frontend/src/layouts/ProjectV1Layout.vue+++ b/frontend/src/layouts/ProjectV1Layout.vue@@ -1,48 +1,46 @@<template><template v-if="initialized"><ArchiveBanner v-if="project.state === State.DELETED" class="py-2" />- <div class="px-4 h-full overflow-auto">- <template v-if="!hideDefaultProject && isDefaultProject">- <h1 class="mb-4 text-xl font-bold leading-6 text-main truncate">- {{ $t("database.unassigned-databases") }}- </h1>- <BBAttention class="mb-4" type="info">- {{ $t("project.overview.info-slot-content") }}- </BBAttention>- </template>-- <div- v-if="!hideQuickActionPanel"- class="overflow-hidden grid grid-cols-3 gap-x-2 gap-y-4 md:inline-flex items-stretch mb-4"+ <template v-if="!hideDefaultProject && isDefaultProject">+ <h1 class="mb-4 text-xl font-bold leading-6 text-main truncate">+ {{ $t("database.unassigned-databases") }}+ </h1>+ <BBAttention class="mb-4" type="info">+ {{ $t("project.overview.info-slot-content") }}+ </BBAttention>+ </template>++ <div+ v-if="!hideQuickActionPanel"+ class="overflow-hidden grid grid-cols-3 gap-x-2 gap-y-4 md:inline-flex items-stretch mb-4"+ >+ <NButton+ v-for="(quickAction, index) in quickActionList"+ :key="index"+ @click="quickAction.action">- <NButton- v-for="(quickAction, index) in quickActionList"- :key="index"- @click="quickAction.action"- >- <template #icon>- <component :is="quickAction.icon" class="h-4 w-4" />- </template>- <NEllipsis>- {{ quickAction.title }}- </NEllipsis>- </NButton>- </div>-- <router-view- v-if="hasPermission"- :project-id="projectId"- :allow-edit="allowEdit"- v-bind="$attrs"- />- <NoPermissionPlaceholder v-else class="py-6">- <template v-if="hasCreateIssuePermission" #extra>- <NButton type="primary" @click="state.showRequestRolePanel = true">- {{ $t("issue.title.request-role") }}- </NButton>+ <template #icon>+ <component :is="quickAction.icon" class="h-4 w-4" /></template>- </NoPermissionPlaceholder>+ <NEllipsis>+ {{ quickAction.title }}+ </NEllipsis>+ </NButton></div>++ <router-view+ v-if="hasPermission"+ :project-id="projectId"+ :allow-edit="allowEdit"+ v-bind="$attrs"+ />+ <NoPermissionPlaceholder v-else class="py-6">+ <template v-if="hasCreateIssuePermission" #extra>+ <NButton type="primary" @click="state.showRequestRolePanel = true">+ {{ $t("issue.title.request-role") }}+ </NButton>+ </template>+ </NoPermissionPlaceholder></template><divv-else@@ -92,6 +90,7 @@ import {} from "@/types";import { State } from "@/types/proto/v1/common";import { hasProjectPermissionV2 } from "@/utils";+import { useBodyLayoutContext } from "./common";interface LocalState {showRequestRolePanel: boolean;@@ -223,4 +222,8 @@ const quickActionList = computed(() => {const hideQuickActionPanel = computed(() => {return hideQuickAction.value || quickActionList.value.length === 0;});++const { overrideMainContainerClass } = useBodyLayoutContext();++overrideMainContainerClass("px-4");</script>diff --git a/frontend/src/views/project/ProjectIssueDetail.vue b/frontend/src/views/project/ProjectIssueDetail.vueindex 53dffda26d..aef1d78397 100644--- a/frontend/src/views/project/ProjectIssueDetail.vue+++ b/frontend/src/views/project/ProjectIssueDetail.vue@@ -1,5 +1,5 @@<template>- <div class="-mx-4 relative overflow-x-hidden">+ <div class="relative overflow-x-hidden"><template v-if="ready"><GrantRequestIssueDetailPage v-if="isGrantRequestIssue(issue)" /><DataExportIssueDetailPage v-else-if="isDatabaseDataExportIssue(issue)" />@@ -106,7 +106,7 @@ providePlanCheckRunContext(const { overrideMainContainerClass } = useBodyLayoutContext();-overrideMainContainerClass("!py-0");+overrideMainContainerClass("!py-0 !px-0");onMounted(() => {if (!uiStateStore.getIntroStateByKey("issue.visit")) {diff --git a/frontend/src/views/project/ProjectPlanDetail.vue b/frontend/src/views/project/ProjectPlanDetail.vueindex be170ccadb..5d2bd2d788 100644--- a/frontend/src/views/project/ProjectPlanDetail.vue+++ b/frontend/src/views/project/ProjectPlanDetail.vue@@ -1,5 +1,5 @@<template>- <div class="-mx-4 relative overflow-x-hidden h-full">+ <div class="relative overflow-x-hidden h-full"><template v-if="ready"><PlanDetailPage /></template>@@ -93,7 +93,7 @@ providePlanCheckRunContext(const { overrideMainContainerClass } = useBodyLayoutContext();-overrideMainContainerClass("!py-0");+overrideMainContainerClass("!py-0 !px-0");const documentTitle = computed(() => {if (isCreating.value) {