Skip to content

Commit

Permalink
chore: Backport #3838 to web (#3840)
Browse files Browse the repository at this point in the history
Co-authored-by: Rich Brown <richb.hanover@gmail.com>
  • Loading branch information
prql-bot and richb-hanover authored Nov 23, 2023
1 parent 29ec46b commit 1567d2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions web/playground/src/output/Output.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ class Output extends React.Component {
return (
<div className="tab">
<div className="tab-top">
<Tab text="output.sql" name="sql" parent={this.props} />
<Tab text="output.arrow" name="arrow" parent={this.props} />
<Tab text="output.pl.yaml" name="pl" parent={this.props} />
<Tab text="output.rq.yaml" name="rq" parent={this.props} />
<Tab text="Compiled&nbsp;SQL" name="sql" parent={this.props} />
<Tab text="Query&nbsp;Results" name="arrow" parent={this.props} />
<Tab text="PL.yaml" name="pl" parent={this.props} />
<Tab text="RQ.yaml" name="rq" parent={this.props} />

<div className="spacer"></div>

Expand Down
3 changes: 2 additions & 1 deletion web/playground/src/workbench/Workbench.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
.tab-top button {
border: 0;
background: transparent;
background: dimgrey;
color: inherit;
font-size: inherit;
font-family: inherit;
Expand Down Expand Up @@ -64,6 +64,7 @@

max-height: 50%;
overflow-y: auto;
flex-shrink: 0;

font-family: monospace;
white-space: pre-wrap;
Expand Down
1 change: 1 addition & 0 deletions web/playground/src/workbench/Workbench.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ class Workbench extends React.Component {
></Output>
</div>

{/* Display an error message relevant to the tab */}
{this.state.prqlError && (
<div className="error-pane">{this.state.prqlError}</div>
)}
Expand Down

0 comments on commit 1567d2a

Please sign in to comment.