File tree 4 files changed +7
-7
lines changed
frontend/src/lib/components
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1418
1418
{#if ! editor }
1419
1419
<div class =" inset-0 absolute overflow-clip" >
1420
1420
<FakeMonacoPlaceHolder
1421
- marginLeft =" 3.19em "
1421
+ marginLeft =" 51px "
1422
1422
{code }
1423
1423
fontSize ={! small ? 14 : 12 }
1424
1424
className =" dark:bg-[#272D38] h-full"
Original file line number Diff line number Diff line change 12
12
</script >
13
13
14
14
<div
15
- class ={' relative w-full pr-14 z-9 mt-[-0.026em] dark:bg-[#272D38] mb-[0.026em] leading-5 overflow-y-clip overflow-x-auto mycontainer ' +
15
+ class ={' relative w-full pr-14 z-9 mt-[-1px] mb-[1px] leading-[20px] dark:bg-[#272D38] overflow-y-clip overflow-x-auto mycontainer ' +
16
16
className }
17
17
style ="padding-left: {marginLeft };"
18
18
>
19
19
<div
20
- class =" absolute inset-x-0 h-[1.36em ] dark:bg-[#3A4252] mix-blend-lighten"
20
+ class =" absolute inset-x-0 h-[59px ] dark:bg-[#3A4252] mix-blend-lighten"
21
21
style ="margin-left: {marginLeft };"
22
22
></div >
23
23
<code
24
24
class =" text-nowrap whitespace-pre-wrap overflow-clip text-tertiary/50"
25
- style ="font-size: {fontSize / 16 } em ;"
25
+ style ="font-size: {fontSize } px ;"
26
26
>
27
27
{code }
28
28
{#if code .endsWith (' \n ' )}
34
34
<style >
35
35
.mycontainer ::-webkit-scrollbar {
36
36
/* Try to match monaco's scrollbar */
37
- height : 0.75 em ;
37
+ height : 12 px ;
38
38
}
39
39
.mycontainer ::-webkit-scrollbar-thumb {
40
40
background-color : transparent ;
Original file line number Diff line number Diff line change 559
559
{/if }
560
560
561
561
{#if ! editor }
562
- <FakeMonacoPlaceHolder marginLeft ="1.44em " {code } fontSize ={small ? 12 : 14 } />
562
+ <FakeMonacoPlaceHolder marginLeft ="23px " {code } fontSize ={small ? 12 : 14 } />
563
563
{/if }
564
564
565
565
<div
Original file line number Diff line number Diff line change 630
630
<EditorTheme />
631
631
632
632
{#if ! editor }
633
- <FakeMonacoPlaceHolder {code } {fontSize } marginLeft =" 1.6em " />
633
+ <FakeMonacoPlaceHolder {code } {fontSize } marginLeft =" 25px " />
634
634
{/if }
635
635
<div
636
636
bind:this ={divEl }
You can’t perform that action at this time.
0 commit comments