Skip to content

Commit 9f2adfd

Browse files
committed
Reworked panel bar to allow full area drag-to-resize.
Signed-off-by: ubi de feo <[email protected]>
1 parent f442628 commit 9f2adfd

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ui/arduino/main.css

+6
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ button.small .icon {
342342
flex-grow: 2;
343343
height: 100%;
344344
cursor: grab;
345+
position: absolute;
346+
width: 100%;
345347
}
346348

347349
#panel #drag-handle:active {
@@ -357,6 +359,7 @@ button.small .icon {
357359
gap: 10px;
358360
align-self: stretch;
359361
background: #008184;
362+
position: relative;
360363
}
361364

362365
.panel-bar #connection-status {
@@ -372,6 +375,9 @@ button.small .icon {
372375
filter: invert(1);
373376
}
374377

378+
.panel-bar .spacer {
379+
flex-grow: 1;
380+
}
375381
.panel-bar .term-operations {
376382
transition: opacity 0.15s;
377383
display: flex;

ui/arduino/views/components/repl-panel.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function ReplPanel(state, emit) {
2222
<img src="media/connect.svg" />
2323
<div>${state.isConnected ? 'Connected to ' + state.connectedPort : ''}</div>
2424
</div>
25+
<div class="spacer"></div>
2526
<div id="drag-handle"
2627
onmousedown=${() => emit('start-resizing-panel')}
2728
onmouseup=${() => emit('stop-resizing-panel')}
@@ -34,6 +35,7 @@ function ReplPanel(state, emit) {
3435
size: 'small',
3536
onClick: onToggle
3637
})}
38+
3739
</div>
3840
<div class=${terminalDisabledClass}>
3941
${state.cache(XTerm, 'terminal').render()}

0 commit comments

Comments
 (0)