From 578be0cc8f4ff44752db78ea4f741f4e7408818b Mon Sep 17 00:00:00 2001 From: Abhay Padamani <141122205+ktx-abhay@users.noreply.github.com> Date: Fri, 15 May 2026 19:06:59 +0530 Subject: [PATCH] fix: dashboard table chart padding issue (#11845) image After this pr: image --- web/src/components/TenstackTable.vue | 12 ++++- .../addPanel/TablePaginationControls.vue | 49 ++++++++++++++++++- .../dashboards/panels/TableRenderer.vue | 2 +- 3 files changed, 60 insertions(+), 3 deletions(-) diff --git a/web/src/components/TenstackTable.vue b/web/src/components/TenstackTable.vue index 4ff9dde5c4..f77a32d00a 100644 --- a/web/src/components/TenstackTable.vue +++ b/web/src/components/TenstackTable.vue @@ -2340,11 +2340,21 @@ defineExpose({ } } -// Copy button — only visible on cell hover +// Copy button — only visible on cell hover, sized to match text so it +// doesn't inflate the row height. .copy-cell-td { .copy-btn { opacity: 0; transition: opacity 0.15s; + display: inline-flex; + align-items: center; + line-height: 1; + + :deep(button) { + height: 16px !important; + width: 16px !important; + min-height: unset !important; + } } &:hover .copy-btn { diff --git a/web/src/components/dashboards/addPanel/TablePaginationControls.vue b/web/src/components/dashboards/addPanel/TablePaginationControls.vue index dcb51f157a..87d4f375f3 100644 --- a/web/src/components/dashboards/addPanel/TablePaginationControls.vue +++ b/web/src/components/dashboards/addPanel/TablePaginationControls.vue @@ -34,7 +34,7 @@ along with this program. If not, see . - + {{ countDisplay }} @@ -147,3 +147,50 @@ export default defineComponent({ }, }); + + diff --git a/web/src/components/dashboards/panels/TableRenderer.vue b/web/src/components/dashboards/panels/TableRenderer.vue index 36f6fbb523..649d88996f 100644 --- a/web/src/components/dashboards/panels/TableRenderer.vue +++ b/web/src/components/dashboards/panels/TableRenderer.vue @@ -45,7 +45,7 @@ along with this program. If not, see .