Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ const LoaderWrapper = styled.div<{

&.inline-centered {
margin: 0 auto;
display: block;
display: flex;
align-items: center;
justify-content: center;
}
&.floating {
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ const ActionButtons = ({
<Button
disabled={!isClearAllEnabled}
buttonStyle="link"
buttonSize="small"
className="filter-clear-all-button"
onClick={onClearAll}
{...getFilterBarTestId('clear-button')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ const VerticalFilterControlTitle = styled.h4`
const HorizontalFilterControlTitle = styled(VerticalFilterControlTitle)`
font-weight: ${({ theme }) => theme.fontWeightNormal};
color: ${({ theme }) => theme.colorText};
margin: 0;
${truncationCSS};
`;

const HorizontalOverflowFilterControlTitle = styled(
HorizontalFilterControlTitle,
)`
max-width: none;
margin: ${({ theme }) => theme.sizeUnit * 2}px 0
Comment thread
richardfogaca marked this conversation as resolved.
Outdated
${({ theme }) => theme.sizeUnit}px;
`;

const VerticalFilterControlTitleBox = styled.div`
Expand Down Expand Up @@ -161,7 +164,7 @@ const HorizontalFormItem = styled(StyledFormItem)<{
align-items: center;
}

.ant-form-item-label {
&& > .ant-row > .ant-form-item-label {
display: flex;
align-items: center;
overflow: visible;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,15 @@ import { useFilterOutlined } from '../useFilterOutlined';
const HEIGHT = 32;

// Overrides superset-ui height with min-height
const StyledDiv = styled.div`
const StyledDiv = styled.div<{
orientation: FilterBarOrientation;
overflow: boolean;
}>`
padding-bottom: ${({ theme, orientation, overflow }) =>
orientation === FilterBarOrientation.Horizontal && !overflow
? 0
: (theme?.sizeUnit ?? 4)}px;

& > div {
height: auto !important;
min-height: ${HEIGHT}px;
Expand Down Expand Up @@ -353,7 +361,11 @@ const FilterValue: FC<FilterControlProps> = ({
}

return (
<StyledDiv data-test="form-item-value">
<StyledDiv
data-test="form-item-value"
orientation={orientation}
overflow={overflow}
>
{isLoading ? (
<Loading position="inline-centered" size="s" muted />
) : (
Expand Down
Loading