diff --git a/ts/editor/ImageHandle.svelte b/ts/editor/ImageHandle.svelte index 2f20f2101..d6934c093 100644 --- a/ts/editor/ImageHandle.svelte +++ b/ts/editor/ImageHandle.svelte @@ -16,7 +16,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html export let container: HTMLElement; $: showDimensions = image - ? parseInt(getComputedStyle(image).getPropertyValue("width")) > 220 + ? parseInt(getComputedStyle(image).getPropertyValue("width")) > 100 : false; $: selector = `:not([src="${image?.getAttribute("src")}"])`; @@ -119,7 +119,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html width = Math.trunc(naturalWidth * heightIncrease); } - showDimensions = width > 220; + showDimensions = width > 100; image!.style.width = `${width}px`; image!.style.height = `${height}px`; @@ -146,7 +146,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html on:mousedown|preventDefault on:dblclick={onDblclick} /> -