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
  • Loading branch information
rusackas committed Jun 15, 2021
1 parent b179863 commit e52b5cf
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 e52b5cf

Please sign in to comment.