From b3c921b86cb576764dfe78d179697084b914b8de Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Wed, 21 Jul 2021 03:50:52 +0200 Subject: [PATCH] Bind to style properties instead of events --- ts/editor/ImageHandle.svelte | 46 ++++++++++++++--------------- ts/editor/ImageHandleButtons.svelte | 13 ++++---- 2 files changed, 28 insertions(+), 31 deletions(-) diff --git a/ts/editor/ImageHandle.svelte b/ts/editor/ImageHandle.svelte index 1e4553e5b..3a444877f 100644 --- a/ts/editor/ImageHandle.svelte +++ b/ts/editor/ImageHandle.svelte @@ -89,32 +89,30 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html const nightMode = getContext(nightModeKey); -
-
-
- +
+
+ +
+
+ {width}×{height} (Original: {naturalWidth}×{naturalHeight}) +
+
+
+
+
-
- {width}×{height} (Original: {naturalWidth}×{naturalHeight}) -
-
-
-
-
-
+{/if}