Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(frontend): minor style tuning for slow query log table (#5790)
Liu Ji43a13e621906
diff --git a/frontend/src/components/SlowQuery/Panel/DetailPanel.vue b/frontend/src/components/SlowQuery/Panel/DetailPanel.vueindex 6a9b25753b..136dde826f 100644--- a/frontend/src/components/SlowQuery/Panel/DetailPanel.vue+++ b/frontend/src/components/SlowQuery/Panel/DetailPanel.vue@@ -88,10 +88,10 @@</div></div><div class="bb-grid-cell">- {{ detail.queryTime?.seconds.toFixed(6) }}+ {{ detail.queryTime?.seconds.toFixed(2) }}s</div><div class="bb-grid-cell">- {{ detail.lockTime?.seconds.toFixed(6) }}+ {{ detail.lockTime?.seconds.toFixed(2) }}s</div><div class="bb-grid-cell">{{ detail.rowsExamined }}diff --git a/frontend/src/components/SlowQuery/Panel/LogTable.vue b/frontend/src/components/SlowQuery/Panel/LogTable.vueindex d803646f72..ead37146ea 100644--- a/frontend/src/components/SlowQuery/Panel/LogTable.vue+++ b/frontend/src/components/SlowQuery/Panel/LogTable.vue@@ -7,7 +7,7 @@(row) => instanceHasSlowQueryDetail(row.database.instance)":is-row-expanded="isSelectedRow"- class="border compact w-auto overflow-x-auto"+ class="border w-auto overflow-x-auto"header-class="capitalize"@click-row="(log: ComposedSlowQueryLog) => $emit('select', log)">@@ -146,43 +146,43 @@ const columns = computed(() => {},{title: t("slow-query.sql-statement"),- width: "minmax(20rem, 1fr)",+ width: "minmax(10rem, 1fr)",},{title: t("slow-query.total-query-count"),- width: "minmax(6rem, auto)",+ width: "6rem",},{title: t("slow-query.query-count-percent"),- width: "minmax(6rem, auto)",+ width: "6rem",},{title: t("slow-query.max-query-time"),- width: "minmax(6rem, auto)",+ width: "6rem",},{title: t("slow-query.avg-query-time"),- width: "minmax(6rem, auto)",+ width: "6rem",},{title: t("slow-query.query-time-percent"),- width: "minmax(6rem, auto)",+ width: "6rem",},{title: t("slow-query.max-rows-examined"),- width: "minmax(6rem, auto)",+ width: "6rem",},{title: t("slow-query.avg-rows-examined"),- width: "minmax(6rem, auto)",+ width: "6rem",},{title: t("slow-query.max-rows-sent"),- width: "minmax(6rem, auto)",+ width: "6rem",},{title: t("slow-query.avg-rows-sent"),- width: "minmax(6rem, auto)",+ width: "6rem",},props.showProjectColumn && {title: t("common.project"),@@ -190,15 +190,15 @@ const columns = computed(() => {},props.showEnvironmentColumn && {title: t("common.environment"),- width: "minmax(6rem, auto)",+ width: "8rem",},props.showInstanceColumn && {title: t("common.instance"),- width: "minmax(12rem, 18rem)",+ width: "12rem",},props.showDatabaseColumn && {title: t("common.database"),- width: "minmax(12rem, 18rem)",+ width: "8rem",},{title: t("slow-query.last-query-time"),@@ -224,7 +224,7 @@ const durationText = (duration: Duration | undefined) => {if (!duration) return "-";const { seconds, nanos } = duration;const total = seconds + nanos / 1e9;- return total.toFixed(6);+ return total.toFixed(2) + "s";};watch(