This is an automated email from the ASF dual-hosted git repository.
kasiazjc 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 c394405fc18 fix(explore): restore spacing between tabs and content in
control popovers (#40023)
c394405fc18 is described below
commit c394405fc1884b8ef276b3561c08306895e5f67d
Author: Kasia <[email protected]>
AuthorDate: Tue May 12 14:30:41 2026 +0200
fix(explore): restore spacing between tabs and content in control popovers
(#40023)
---
.../src/explore/components/ExploreContentPopover.tsx | 10 ++++++++--
.../FilterControl/AdhocFilterEditPopover/index.tsx | 20 ++++----------------
.../AdhocFilterEditPopoverSimpleTabContent/index.tsx | 7 +++----
3 files changed, 15 insertions(+), 22 deletions(-)
diff --git a/superset-frontend/src/explore/components/ExploreContentPopover.tsx
b/superset-frontend/src/explore/components/ExploreContentPopover.tsx
index a0f97b7543e..7d7df6fc0ae 100644
--- a/superset-frontend/src/explore/components/ExploreContentPopover.tsx
+++ b/superset-frontend/src/explore/components/ExploreContentPopover.tsx
@@ -22,12 +22,18 @@ export const ExplorePopoverContent = styled.div`
.edit-popover-resize {
transform: scaleX(-1);
float: right;
- margin-top: ${({ theme }) => theme.sizeUnit * 4}px;
- margin-right: ${({ theme }) => theme.sizeUnit * -1}px;
+ margin-top: ${({ theme }) => theme.margin}px;
+ margin-right: ${({ theme }) => theme.marginXXS * -1}px;
color: ${({ theme }) => theme.colorIcon};
cursor: nwse-resize;
}
.filter-sql-editor {
border: ${({ theme }) => theme.colorBorder} solid thin;
}
+ && .ant-tabs-nav {
+ margin-bottom: ${({ theme }) => theme.marginSM}px;
+ }
+ && .ant-form-item {
+ margin-bottom: ${({ theme }) => theme.marginXS}px;
+ }
`;
diff --git
a/superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterEditPopover/index.tsx
b/superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterEditPopover/index.tsx
index e8158462ea5..7fc2dc0ff8f 100644
---
a/superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterEditPopover/index.tsx
+++
b/superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterEditPopover/index.tsx
@@ -78,14 +78,6 @@ interface AdhocFilterEditPopoverState {
}
const FilterPopoverContentContainer = styled.div`
- .adhoc-filter-edit-tabs > .nav-tabs {
- margin-bottom: ${({ theme }) => theme.sizeUnit * 2}px;
-
- & > li > a {
- padding: ${({ theme }) => theme.sizeUnit}px;
- }
- }
-
#filter-edit-popover {
max-width: none;
}
@@ -97,21 +89,17 @@ const FilterPopoverContentContainer = styled.div`
.filter-edit-clause-section {
display: flex;
flex-direction: row;
- gap: ${({ theme }) => theme.sizeUnit * 5}px;
- }
-
- .adhoc-filter-simple-column-dropdown {
- margin-top: ${({ theme }) => theme.sizeUnit * 5}px;
+ gap: ${({ theme }) => theme.marginMD}px;
}
`;
const FilterActionsContainer = styled.div`
- margin-top: ${({ theme }) => theme.sizeUnit * 2}px;
+ margin-top: ${({ theme }) => theme.marginXS}px;
`;
const LayerSelectContainer = styled.div`
- margin-top: ${({ theme }) => theme.sizeUnit * 2}px;
- margin-bottom: ${({ theme }) => theme.sizeUnit * 12}px;
+ margin-top: ${({ theme }) => theme.marginXS}px;
+ margin-bottom: ${({ theme }) => theme.marginXXL}px;
`;
export default class AdhocFilterEditPopover extends Component<
diff --git
a/superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterEditPopoverSimpleTabContent/index.tsx
b/superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterEditPopoverSimpleTabContent/index.tsx
index 64a590a01d8..2a62bdf82df 100644
---
a/superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterEditPopoverSimpleTabContent/index.tsx
+++
b/superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterEditPopoverSimpleTabContent/index.tsx
@@ -523,8 +523,7 @@ const AdhocFilterEditPopoverSimpleTabContent: FC<Props> =
props => {
const subjectComponent = (
<Select
css={{
- marginTop: theme.sizeUnit * 4,
- marginBottom: theme.sizeUnit * 4,
+ marginBottom: theme.marginXS,
}}
data-test="select-element"
options={columns.map(column => ({
@@ -565,7 +564,7 @@ const AdhocFilterEditPopoverSimpleTabContent: FC<Props> =
props => {
>
<SelectWithLabel
css={css`
- margin-top: ${theme.sizeUnit * 4}px;
+ margin-top: ${theme.marginXS}px;
`}
labelText={labelText}
options={suggestions}
@@ -581,7 +580,7 @@ const AdhocFilterEditPopoverSimpleTabContent: FC<Props> =
props => {
>
<div
css={css`
- margin-top: ${theme.sizeUnit * 4}px;
+ margin-top: ${theme.marginXS}px;
`}
/>
<Input