This is an automated email from the ASF dual-hosted git repository.
kgabryje pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 4b96474d6c fix(dashboard): Fix filter card positioning for horizontal
native filters (#22212)
4b96474d6c is described below
commit 4b96474d6c9d405bc2dbf8e899d2b7486bf5f213
Author: Cody Leff <[email protected]>
AuthorDate: Mon Nov 28 04:34:50 2022 -0700
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 5947fd6f26..14b9d973cf 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;
}