Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

hotfix(web): editor not filling space

Elijah Potter06384d8ad99c
diff --git a/packages/web/src/lib/components/Editor.svelte b/packages/web/src/lib/components/Editor.svelte
index b9c5d41ee..ab484687e 100644
--- a/packages/web/src/lib/components/Editor.svelte
+++ b/packages/web/src/lib/components/Editor.svelte
@@ -119,7 +119,7 @@ function jumpTo(lintBox: IgnorableLintBox) {
}
</script>
-<div class="flex flex-row h-full max-w-full">
+<div class="flex flex-row h-full w-full">
<Card class="flex-1 h-full p-5 z-10 max-w-full text-lg mr-5">
<div bind:this={editor} spellcheck="false">
{@html content.replace(/\n\n/g, '<br>')}
diff --git a/packages/web/src/lib/components/LazyEditor.svelte b/packages/web/src/lib/components/LazyEditor.svelte
index d7c1ea35f..00f53cc4b 100644
--- a/packages/web/src/lib/components/LazyEditor.svelte
+++ b/packages/web/src/lib/components/LazyEditor.svelte
@@ -11,7 +11,7 @@ function onReady() {
</script>
{#await editor then { default: Editor}}
- <div class={`flex-row h-full max-w-full ${loading ? "hidden" : "flex"}`}>
+ <div class={`flex-row h-full w-full ${loading ? "hidden" : "flex"}`}>
<Editor content={content} {onReady}/>
</div>
{/await}