Skip to content

Commit

Permalink
Hide the editor sidebar in headless mode, since it's empty and just c…
Browse files Browse the repository at this point in the history
…overs up the play button. But it's still needed in tutorials to show the instructions.
  • Loading branch information
thsparks committed Sep 14, 2023
1 parent 7446a21 commit 626be31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
12 changes: 1 addition & 11 deletions theme/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -1502,17 +1502,7 @@ p.ui.font.small {

#root.headless.collapsedEditorTools {
#simulator .editor-sidebar {
position: absolute;
width: auto;
top: auto;
left: 5rem;
background: none transparent;
min-width: inherit;
max-width: inherit;

.simulator-container {
display: none;
}
display: none;
}

#boardview, .filemenu {
Expand Down
5 changes: 5 additions & 0 deletions theme/tutorial-sidebar.less
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,11 @@

#root.headless.tabTutorial {
#simulator .editor-sidebar {
display: block;
position: absolute;
background: none transparent;
min-width: inherit;
max-width: inherit;
width: @simulatorWidth;
height: calc(~'100%' - @mainMenuHeight);
top: @mainMenuHeight;
Expand Down

0 comments on commit 626be31

Please sign in to comment.