Skip to content

Commit

Permalink
fix(sqllab): Query limit dropdown number breaks to separate lines (#1…
Browse files Browse the repository at this point in the history
…7382)

* Limit break fixed

* Used white-space: nowrap instead of width: max-content
  • Loading branch information
lyndsiWilliams authored and AAfghahi committed Jan 10, 2022
1 parent 0cc282b commit dfeec21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion superset-frontend/src/SqlLab/components/SqlEditor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ const StyledToolbar = styled.div`
}
}
}
.limitDropdown {
white-space: nowrap;
}
`;

const propTypes = {
Expand Down Expand Up @@ -646,7 +650,7 @@ class SqlEditor extends React.PureComponent {
<Dropdown overlay={this.renderQueryLimit()} trigger="click">
<a onClick={e => e.preventDefault()}>
<span>LIMIT:</span>
<span>
<span className="limitDropdown">
{this.convertToNumWithSpaces(
this.props.queryEditor.queryLimit ||
this.props.defaultQueryLimit,
Expand Down

0 comments on commit dfeec21

Please sign in to comment.