fix for increased browser font sizes

This commit is contained in:
Diego Imbert
2025-04-16 15:42:41 +02:00
parent cd1260cb81
commit 07779c4595
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1418,7 +1418,7 @@
{#if !editor}
<div class="inset-0 absolute overflow-clip">
<FakeMonacoPlaceHolder
marginLeft="3.19em"
marginLeft="51px"
{code}
fontSize={!small ? 14 : 12}
className="dark:bg-[#272D38] h-full"
@@ -12,17 +12,17 @@
</script>
<div
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 ' +
class={'relative w-full pr-14 z-9 mt-[-1px] mb-[1px] leading-[20px] dark:bg-[#272D38] overflow-y-clip overflow-x-auto mycontainer ' +
className}
style="padding-left: {marginLeft};"
>
<div
class="absolute inset-x-0 h-[1.36em] dark:bg-[#3A4252] mix-blend-lighten"
class="absolute inset-x-0 h-[22px] dark:bg-[#3A4252] mix-blend-lighten"
style="margin-left: {marginLeft};"
></div>
<code
class="text-nowrap whitespace-pre-wrap overflow-clip text-tertiary/50"
style="font-size: {fontSize / 16}em;"
style="font-size: {fontSize}px;"
>
{code}
{#if code.endsWith('\n')}
@@ -34,7 +34,7 @@
<style>
.mycontainer::-webkit-scrollbar {
/* Try to match monaco's scrollbar */
height: 0.75em;
height: 12px;
}
.mycontainer::-webkit-scrollbar-thumb {
background-color: transparent;
@@ -135,7 +135,7 @@
}}
/>
<div class="flex flex-col w-full items-start">
<div class="flex flex-col w-full items-start min-h-9">
<div class="flex flex-row w-full items-center">
{#if collection?.length > 0}
<Select
@@ -559,7 +559,7 @@
{/if}
{#if !editor}
<FakeMonacoPlaceHolder marginLeft="1.44em" {code} fontSize={small ? 12 : 14} />
<FakeMonacoPlaceHolder marginLeft="23px" {code} fontSize={small ? 12 : 14} />
{/if}
<div
@@ -630,7 +630,7 @@
<EditorTheme />
{#if !editor}
<FakeMonacoPlaceHolder {code} {fontSize} marginLeft="1.6em" />
<FakeMonacoPlaceHolder {code} {fontSize} marginLeft="25px" className="border-[2px]" />
{/if}
<div
bind:this={divEl}