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,6 +52,7 @@ const VerticalFilterControlTitle = styled.h4`
const HorizontalFilterControlTitle = styled(VerticalFilterControlTitle)`
font-weight: ${({ theme }) => theme.fontWeightNormal};
color: ${({ theme }) => theme.colorText};
margin: 0;
${truncationCSS};
`;

Expand Down Expand Up @@ -161,7 +162,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,10 @@ import { useFilterOutlined } from '../useFilterOutlined';
const HEIGHT = 32;

// Overrides superset-ui height with min-height
const StyledDiv = styled.div`
const StyledDiv = styled.div<{ orientation: FilterBarOrientation }>`
padding-bottom: ${({ theme, orientation }) =>
orientation === FilterBarOrientation.Horizontal ? 0 : theme.sizeUnit}px;
Comment thread
richardfogaca marked this conversation as resolved.
Outdated

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

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