From d50c1971e53e432d857e8a8a3096133b86caa47b Mon Sep 17 00:00:00 2001 From: rxdn <29165304+rxdn@users.noreply.github.com> Date: Tue, 2 Aug 2022 15:22:17 +0100 Subject: [PATCH] UI improvements --- frontend/src/views/Tags.svelte | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/Tags.svelte b/frontend/src/views/Tags.svelte index fd6c317..fdc138a 100644 --- a/frontend/src/views/Tags.svelte +++ b/frontend/src/views/Tags.svelte @@ -31,7 +31,7 @@
- +
@@ -58,10 +58,17 @@ let tagCreateModal = false; let tagEditModal = false; + function openCreateModal(id) { + tagCreateModal = true; + window.scrollTo({ top: 0, behavior: 'smooth' }); + } + function openEditModal(id) { editId = id; editData = tags[id]; tagEditModal = true; + + window.scrollTo({ top: 0, behavior: 'smooth' }); } function cancelEdit() { @@ -186,6 +193,7 @@ flex-direction: column; width: 64%; height: 100%; + padding-bottom: 4%; } .body-wrapper {