File tree Expand file tree Collapse file tree 5 files changed +35
-11
lines changed Expand file tree Collapse file tree 5 files changed +35
-11
lines changed Original file line number Diff line number Diff line change 7
7
font-style : normal;
8
8
}
9
9
10
+ @font-face {
11
+ font-family : "OpenSans" ;
12
+ src : url ("media/open-sans_5.0.29_latin-wght-normal.woff2" ) format ("woff2" );
13
+ font-weight : normal;
14
+ font-style : normal;
15
+ }
16
+
10
17
* {
11
18
-moz-user-select : none;
12
19
-webkit-user-select : none;
13
20
user-select : none;
14
- font-family : "RobotoMono " , monospace ;
21
+ font-family : "OpenSans " , sans-serif ;
15
22
}
16
23
17
24
body , html {
@@ -78,14 +85,19 @@ button.small .icon {
78
85
align-content : space-between;
79
86
align-items : center;
80
87
gap : 10px ;
88
+ width : 50px
89
+ }
90
+ .button .first {
91
+ width : 80px ;
81
92
}
82
93
.button .label {
83
94
text-align : center;
84
95
color : # eee ;
85
- opacity : 50% ;
96
+ opacity : 0.5 ;
97
+ font-family : "OpenSans" , sans-serif;
86
98
}
87
99
.button .label .active {
88
- opacity : 100 % ;
100
+ opacity : 1 ;
89
101
}
90
102
.button .tooltip {
91
103
opacity : 0 ;
@@ -147,6 +159,7 @@ button.small .icon {
147
159
min-width : 1px ;
148
160
flex-basis : fit-content;
149
161
background : # fff ;
162
+ opacity : 0.7 ;
150
163
position : relative;
151
164
margin-left : 0.5em ;
152
165
margin-right : 0.5em ;
@@ -236,8 +249,12 @@ button.small .icon {
236
249
font-size : 16px ;
237
250
height : 100% ;
238
251
overflow : hidden;
252
+
239
253
}
240
254
255
+ # code-editor * {
256
+ font-family : "RobotoMono" , monospace;
257
+ }
241
258
# code-editor .cm-editor {
242
259
width : 100% ;
243
260
height : 100% ;
@@ -411,9 +428,10 @@ button.small .icon {
411
428
/* width: 100%; */
412
429
}
413
430
414
- .dialog .dialog-content input {
415
- font-size : 1.4 em ;
431
+ .dialog .dialog-content # file-name {
432
+ font-size : 1.1 em ;
416
433
width : 100% ;
434
+ font-family : "RobotoMono" , monospace;
417
435
}
418
436
419
437
.dialog .dialog-content input : focus {
@@ -439,18 +457,18 @@ button.small .icon {
439
457
flex-direction : row;
440
458
justify-content : center;
441
459
width : 100% ;
442
- gap : 20 px ;
460
+ gap : 12 px ;
443
461
}
444
462
.dialog .buttons-horizontal .item {
445
- flex-basis : 40 % ;
463
+ flex-basis : 50 % ;
446
464
align-items : center;
447
465
background-color : # eee ;;
448
466
}
449
467
450
468
.dialog-title {
451
469
width : 100% ;
452
470
font-size : 0.8em ;
453
- padding : 0.7 em ;
471
+ padding : 0 ;
454
472
margin : 0 ;
455
473
flex-basis : max-content;
456
474
}
Original file line number Diff line number Diff line change @@ -1567,7 +1567,10 @@ async function store(state, emitter) {
1567
1567
const confirmation = confirmDialog ( `File ${ newFile . fileName } already exists on ${ source } . Please choose another name.` , 'OK' )
1568
1568
return false
1569
1569
}
1570
+ // LEAK > listeners keep getting added and not removed when tabs are closed
1571
+ // additionally I found that closing a tab has actually added an extra listener
1570
1572
newFile . editor . onChange = function ( ) {
1573
+ console . log ( 'editor has changes' )
1571
1574
newFile . hasChanges = true
1572
1575
emitter . emit ( 'render' )
1573
1576
}
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ function Button(args) {
7
7
active = false ,
8
8
label,
9
9
tooltip,
10
- background
10
+ background,
11
+ first
11
12
} = args
12
13
let tooltipEl = html ``
13
14
if ( tooltip ) {
@@ -16,8 +17,9 @@ function Button(args) {
16
17
let activeClass = active ? 'active' : ''
17
18
let backgroundClass = background ? 'inverted' : ''
18
19
let labelActiveClass = disabled ? '' : 'active'
20
+ let buttonFirstClass = first ? 'first' : ''
19
21
return html `
20
- < div class ="button ">
22
+ < div class ="button ${ buttonFirstClass } ">
21
23
< button class ="${ size } ${ activeClass } ${ backgroundClass } " onclick =${ onClick } disabled =${ disabled } >
22
24
< img class ="icon " src ="media/ ${ icon } " />
23
25
</ button >
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ function Toolbar(state, emit) {
18
18
label : state . isConnected ? 'Disconnect' : 'Connect' ,
19
19
tooltip : state . isConnected ? `Disconnect (${ metaKeyString } +Shift+D)` : `Connect (${ metaKeyString } +Shift+C)` ,
20
20
onClick : ( ) => state . isConnected ? emit ( 'disconnect' ) : emit ( 'open-connection-dialog' ) ,
21
- active : state . isConnected
21
+ active : state . isConnected ,
22
+ first : true
22
23
} ) }
23
24
24
25
< div class ="separator "> </ div >
You can’t perform that action at this time.
0 commit comments