File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed
Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,20 @@ function Panel(state, emit) {
1212}
1313
1414function PanelHandle ( state , emit ) {
15- let clear = html `
15+ let termControls = html `
16+ < button class ="panel-button " onclick =${ ( ) => document . execCommand ( 'copy' ) } >
17+ C
18+ </ button >
19+ < button class ="panel-button " onclick =${ ( ) => document . execCommand ( 'paste' ) } >
20+ P
21+ </ button >
1622 < button class ="panel-button " onclick =${ ( ) => emit ( 'clean-terminal' ) } >
1723 < img src ="icons/Delete.svg " />
1824 </ button >
1925 `
2026 return html `
2127 < div id ="handle " onmousedown =${ ( ) => emit ( 'start-resizing-panel' ) } >
22- ${ state . isTerminalOpen ? clear : null }
28+ ${ state . isTerminalOpen ? termControls : null }
2329 </ div >
2430 `
2531}
Original file line number Diff line number Diff line change @@ -184,15 +184,16 @@ img {
184184}
185185# panel # handle {
186186 position : relative;
187- padding : 1 rem ;
187+ height : 2 rem ;
188188 background : var (--teal );
189189 cursor : n-resize;
190+ display : flex;
191+ flex-direction : row;
192+ justify-content : flex-end;
193+ align-items : center;
190194}
191195
192- .panel-button {
193- position : absolute;
194- right : 0.25rem ;
195- transform : translateY (-50% );
196+ # panel # handle .panel-button {
196197 border : none;
197198 cursor : pointer !important ;
198199 align-items : center;
@@ -206,6 +207,7 @@ img {
206207 height : 1.5rem ;
207208 line-height : 1rem ;
208209 background : var (--white-faded );
210+ margin : 0 0.25rem ;
209211}
210212
211213# terminal {
You can’t perform that action at this time.
0 commit comments