From 50005b9df922d3b7e4a772c5bde03c158aee95c4 Mon Sep 17 00:00:00 2001 From: Cody Leff Date: Wed, 23 Nov 2022 11:18:39 -0700 Subject: [PATCH] Fix filter card placement. --- superset-frontend/src/dashboard/styles.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/superset-frontend/src/dashboard/styles.ts b/superset-frontend/src/dashboard/styles.ts index 5947fd6f26145..14b9d973cfeab 100644 --- a/superset-frontend/src/dashboard/styles.ts +++ b/superset-frontend/src/dashboard/styles.ts @@ -24,9 +24,18 @@ export const filterCardPopoverStyle = (theme: SupersetTheme) => css` padding: 0; border-radius: 4px; + &.ant-popover-placement-bottom { + padding-top: ${theme.gridUnit}px; + } + + &.ant-popover-placement-left { + padding-right: ${theme.gridUnit * 3}px; + } + .ant-popover-inner { box-shadow: 0 0 8px rgb(0 0 0 / 10%); } + .ant-popover-inner-content { padding: ${theme.gridUnit * 4}px; }