From 58d6487f779b3990954180103a1ae52c1f7f23d7 Mon Sep 17 00:00:00 2001 From: SagarRajput-7 <162284829+SagarRajput-7@users.noreply.github.com> Date: Wed, 25 Sep 2024 11:32:06 +0530 Subject: [PATCH] fix: fixed extra space at bottom for list and table panel (#6049) --- frontend/src/container/GridCardLayout/styles.ts | 9 ++++++++- .../LogsPanelTable/LogsPanelComponent.styles.scss | 2 ++ .../TracesTableComponent.styles.scss | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/src/container/GridCardLayout/styles.ts b/frontend/src/container/GridCardLayout/styles.ts index e3f24308de..df2004da52 100644 --- a/frontend/src/container/GridCardLayout/styles.ts +++ b/frontend/src/container/GridCardLayout/styles.ts @@ -33,7 +33,14 @@ export const Card = styled(CardComponent)` } .ant-card-body { - height: calc(100% - 30px); + ${({ $panelType }): StyledCSS => + $panelType === PANEL_TYPES.TABLE + ? css` + height: 100%; + ` + : css` + height: calc(100% - 30px); + `} padding: 0; } `; diff --git a/frontend/src/container/LogsPanelTable/LogsPanelComponent.styles.scss b/frontend/src/container/LogsPanelTable/LogsPanelComponent.styles.scss index 6317ea2134..b355c90551 100644 --- a/frontend/src/container/LogsPanelTable/LogsPanelComponent.styles.scss +++ b/frontend/src/container/LogsPanelTable/LogsPanelComponent.styles.scss @@ -63,6 +63,8 @@ height: 40px; justify-content: end; padding: 0 8px; + margin-top: 12px; + margin-bottom: 2px; } } diff --git a/frontend/src/container/TracesTableComponent/TracesTableComponent.styles.scss b/frontend/src/container/TracesTableComponent/TracesTableComponent.styles.scss index 74e80f8764..c59bf3c5ad 100644 --- a/frontend/src/container/TracesTableComponent/TracesTableComponent.styles.scss +++ b/frontend/src/container/TracesTableComponent/TracesTableComponent.styles.scss @@ -52,6 +52,8 @@ height: 40px; justify-content: end; padding: 0 8px; + margin-top: 12px; + margin-bottom: 2px; } }