@@ -13,6 +13,7 @@ function NoteEditor(props) {
13
13
14
14
// Set default screen size - full
15
15
const [ splitscreen , setSplitscreen ] = useState ( false ) ;
16
+
16
17
const styles = {
17
18
main_editor : {
18
19
paddingLeft : "5px" ,
@@ -45,6 +46,20 @@ function NoteEditor(props) {
45
46
height : "100%" ,
46
47
borderRadius : "5px" ,
47
48
} ,
49
+ inputNum : {
50
+ width : "4.26rem" ,
51
+ height : "2.7rem" ,
52
+ borderRadius : "4px 2px 2px 4px" ,
53
+ color : "#292a2b" ,
54
+ padding : "0.1ex 1ex" ,
55
+ border : "1px solid #ccc" ,
56
+ fontWeight : 250 ,
57
+ textShadow : "1px 1px 1px rgba(0, 0, 0, 0.1)" ,
58
+ outline : "none" ,
59
+ display : "inline-flex" ,
60
+ alignItems : "center" ,
61
+ justifyContent : "center" ,
62
+ } ,
48
63
dark : {
49
64
backgroundColor : "hsl(0, 0%, 14%)" ,
50
65
color : "#afafaf" ,
@@ -455,24 +470,30 @@ function NoteEditor(props) {
455
470
>
456
471
< span className = "tooltiptext" > Strikethrough</ span >
457
472
</ i >
458
- < InputNumber
459
- min = { 10 }
460
- max = { 48 }
461
- step = { 1 }
462
- value = { fontsize }
463
- onChange = { setFontsize }
464
- style = { {
465
- width : "4.2rem" ,
466
- height : "2.7rem" ,
467
- borderRadius : "4px 2px 2px 4px" ,
468
- color : "#292a2b" ,
469
- padding : "0.1ex 1ex" ,
470
- border : "1px solid #ccc" ,
471
- fontWeight : 100 ,
472
- textShadow : "1px 1px 1px rgba(0, 0, 0, 0.1)" ,
473
- outline : "none" ,
474
- } }
475
- />
473
+
474
+ < span className = "input-div" >
475
+ < i
476
+ className = "fas fa-angle-left fa-lg fnt_btn"
477
+ onClick = { ( e ) => setFontsize ( fontsize - 1 ) }
478
+ > </ i >
479
+ < InputNumber
480
+ min = { 10 }
481
+ max = { 48 }
482
+ step = { 1 }
483
+ value = { fontsize }
484
+ onChange = { setFontsize }
485
+ style = { { ...styles . inputNum , ...styles . btn_dark } }
486
+ style = {
487
+ toggleState . theme === "vs-light"
488
+ ? { ...styles . inputNum , ...styles . btn_light }
489
+ : { ...styles . inputNum , ...styles . btn_dark }
490
+ }
491
+ />
492
+ < i
493
+ className = "fas fa-angle-right fa-lg fnt_btn"
494
+ onClick = { ( e ) => setFontsize ( fontsize + 1 ) }
495
+ > </ i >
496
+ </ span >
476
497
477
498
< div style = { styles . buttons } >
478
499
< i
0 commit comments