From 3845fec280059e9a282c2ea0183af3d6f2885699 Mon Sep 17 00:00:00 2001 From: martin <74269598+martabal@users.noreply.github.com> Date: Mon, 22 Jan 2024 05:47:55 +0100 Subject: [PATCH] refactor(web): descriptions (#6517) * refactor: reusable autogrow * fix: remove useless autogrow * fix: correct size for album description * fix: format * fix: move to own file * refactor: album description * refactor: asset description * simplify * fix: style when no description provided * fix: switching assets * feat: update description with ctrl + enter * fix: variable name * fix: styling --------- Co-authored-by: Alex Tran --- .../album-page/edit-description-modal.svelte | 49 ----------- .../asset-viewer/activity-viewer.svelte | 8 +- .../asset-viewer/detail-panel.svelte | 76 +++++++++++------ web/src/lib/utils/autogrow.ts | 5 ++ .../(user)/albums/[albumId]/+page.svelte | 83 +++++++++---------- 5 files changed, 97 insertions(+), 124 deletions(-) delete mode 100644 web/src/lib/components/album-page/edit-description-modal.svelte create mode 100644 web/src/lib/utils/autogrow.ts diff --git a/web/src/lib/components/album-page/edit-description-modal.svelte b/web/src/lib/components/album-page/edit-description-modal.svelte deleted file mode 100644 index e8bb68da46..0000000000 --- a/web/src/lib/components/album-page/edit-description-modal.svelte +++ /dev/null @@ -1,49 +0,0 @@ - - - -
-
-

Edit description

-
- -
-
- - -