From 4b96474d6c9d405bc2dbf8e899d2b7486bf5f213 Mon Sep 17 00:00:00 2001 From: Cody Leff Date: Mon, 28 Nov 2022 04:34:50 -0700 Subject: [PATCH] fix(dashboard): Fix filter card positioning for horizontal native filters (#22212) --- 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; }