Skip to content

Commit

Permalink
fix: hiding HiddenControl inputs for real, to reduce bootstrap space …
Browse files Browse the repository at this point in the history
…consumption (#15182)

Co-authored-by: Ville Brofeldt <[email protected]>
  • Loading branch information
rusackas and villebro authored Nov 23, 2021
1 parent 7602431 commit 6d66963
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions superset-frontend/src/explore/components/ControlRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ export default function ControlRow({ controls }: { controls: Control[] }) {
);
const colSize = NUM_COLUMNS / countableControls.length;
return (
<div className="row space-1">
<div className="row">
{controls.map((control, i) => (
<div className={`col-lg-${colSize} col-xs-12`} key={i}>
<div
className={`col-lg-${colSize} col-xs-12`}
style={{
display: control?.props.type === 'HiddenControl' ? 'none' : 'block',
}}
key={i}
>
{control}
</div>
))}
Expand Down

0 comments on commit 6d66963

Please sign in to comment.