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 <ville.v.brofeldt@gmail.com>
  • Loading branch information
2 people authored and AAfghahi committed Jan 10, 2022
1 parent 3fafb02 commit a422385
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 a422385

Please sign in to comment.