File tree 2 files changed +13
-9
lines changed
2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -1477,13 +1477,7 @@ pub fn Editor<'a>(
1477
1477
<div class="line-numbers" >
1478
1478
{ line_numbers }
1479
1479
</div>
1480
- <div
1481
- class="code-and-overlay" >
1482
- <div
1483
- id=overlay_id
1484
- class="code-overlay" >
1485
- { move || gen_code_view( & overlay. get( ) ) }
1486
- </div>
1480
+ <div class="code-and-overlay" >
1487
1481
/////////////////////////
1488
1482
// The text entry area //
1489
1483
/////////////////////////
@@ -1493,13 +1487,19 @@ pub fn Editor<'a>(
1493
1487
autocorrect="false"
1494
1488
autocapitalize="off"
1495
1489
spellcheck="false"
1490
+ translate="no"
1496
1491
on: paste=code_paste
1497
1492
on: input=code_input
1498
1493
on: mousemove=code_mouse_move
1499
1494
on: mouseleave=code_mouse_leave
1500
1495
value=initial_code_str>
1501
1496
</textarea>
1502
1497
/////////////////////////
1498
+ <div
1499
+ id=overlay_id
1500
+ class="code-overlay" >
1501
+ { move || gen_code_view( & overlay. get( ) ) }
1502
+ </div>
1503
1503
</div>
1504
1504
</div>
1505
1505
<div id="code-right-side" >
Original file line number Diff line number Diff line change @@ -470,10 +470,12 @@ input[type=number] {
470
470
}
471
471
472
472
.code-entry {
473
+ margin : 0.1em 0 0 0 ;
474
+ padding : 0 ;
475
+ position : absolute;
473
476
outline : none;
474
477
border : none;
475
- padding : 0.15em 0 0.15em 0 ;
476
- margin : 0 0 0 0 ;
478
+ box-sizing : border-box;
477
479
/* background-color: #0002; */
478
480
/* color: #0008; */
479
481
background-color : transparent;
@@ -494,6 +496,8 @@ input[type=number] {
494
496
}
495
497
496
498
.code-overlay {
499
+ margin : 0 ;
500
+ padding : 0 ;
497
501
position : absolute;
498
502
width : 100% ;
499
503
pointer-events : none;
You can’t perform that action at this time.
0 commit comments