Skip to content

Commit e8a9e9d

Browse files
committed
Editor size fix
1 parent 8fe770c commit e8a9e9d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ui/arduino/components/panel.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
function Panel(state, emit) {
2+
let openClass = state.isTerminalOpen || state.isFilesOpen ? 'open' : ''
23
return html`
3-
<div id="panel">
4+
<div id="panel" class=${openClass}>
45
${state.isTerminalOpen ? PanelTerminal(state, emit) : null}
56
${state.isFilesOpen ? PanelFiles(state, emit) : null}
67
</div>

ui/arduino/theme.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ img {
154154
/* PANEL */
155155
#panel {
156156
overflow: hidden;
157+
}
158+
#panel.open {
157159
height: 100%;
158160
}
159161

0 commit comments

Comments
 (0)