From 9a2b3410d0ead37ae1da408d68e14507a058a613 Mon Sep 17 00:00:00 2001
From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com>
Date: Thu, 11 Aug 2022 23:57:53 +0200
Subject: [PATCH] Add slide out animation to EditingArea, RichTextInput and
PlainTextInput
only for collapsing, because it is choppy on expansion (common issue with Svelte transitions).
---
ts/editor/EditingArea.svelte | 8 +-
.../plain-text-input/PlainTextInput.svelte | 35 ++++----
.../rich-text-input/RichTextInput.svelte | 81 ++++++++++---------
3 files changed, 66 insertions(+), 58 deletions(-)
diff --git a/ts/editor/EditingArea.svelte b/ts/editor/EditingArea.svelte
index 401611501..5df3ffeed 100644
--- a/ts/editor/EditingArea.svelte
+++ b/ts/editor/EditingArea.svelte
@@ -51,6 +51,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import { fontFamilyKey, fontSizeKey } from "../lib/context-keys";
import FocusTrap from "./FocusTrap.svelte";
+ import { slide } from "svelte/transition";
export let fontFamily: string;
const fontFamilyStore = writable(fontFamily);
@@ -177,7 +178,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html