nit scroll

This commit is contained in:
Ruben Fiszel
2024-07-16 21:31:55 +02:00
parent 21a5396af7
commit 5cb8bc4c2f
3 changed files with 2 additions and 3 deletions

View File

@@ -370,7 +370,6 @@
{suggestion}
</div>
{/if}
<div bind:this={divEl} class="{$$props.class ?? ''} editor" bind:clientWidth={width} />
<style lang="postcss">

View File

@@ -477,7 +477,7 @@
const updateHeight = () => {
const contentHeight = Math.min(1000, editor.getContentHeight())
if (divEl) {
divEl.style.height = `${contentHeight}px`
divEl.style.height = `${contentHeight + 2}px`
}
try {
editor.layout({ width, height: contentHeight })

View File

@@ -362,7 +362,7 @@
<Tab value="advanced">Advanced</Tab>
</Tabs>
<div
class={advancedSelected === 'runtime' ? 'h-[calc(100%-64px)]' : 'h-[calc(100%-32px)]'}
class={advancedSelected === 'runtime' ? 'h-[calc(100%-68px)]' : 'h-[calc(100%-34px)]'}
>
{#if selected === 'inputs' && (flowModule.value.type == 'rawscript' || flowModule.value.type == 'script' || flowModule.value.type == 'flow')}
<div class="h-full overflow-auto" id="flow-editor-step-input">