diff --git a/web/src/lib/actions/autogrow.ts b/web/src/lib/actions/autogrow.ts deleted file mode 100644 index 0e6dec8e81..0000000000 --- a/web/src/lib/actions/autogrow.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { tick } from 'svelte'; -import type { Action } from 'svelte/action'; - -type Parameters = { - height?: string; - value: string; // added to enable reactivity -}; - -export const autoGrowHeight: Action = (textarea, { height = 'auto' }) => { - const update = () => { - void tick().then(() => { - textarea.style.height = height; - textarea.style.height = `${textarea.scrollHeight}px`; - }); - }; - - update(); - return { update }; -}; diff --git a/web/src/lib/components/album-page/album-description.svelte b/web/src/lib/components/album-page/album-description.svelte index 46b424f93a..2b2a185c5b 100644 --- a/web/src/lib/components/album-page/album-description.svelte +++ b/web/src/lib/components/album-page/album-description.svelte @@ -1,8 +1,10 @@ {#if isOwned} - ({ + shortcut: { key: 'Enter', ctrl: true }, + onShortcut: (e) => e.currentTarget.blur(), + }))} /> {:else if description}

diff --git a/web/src/lib/components/asset-viewer/activity-viewer.svelte b/web/src/lib/components/asset-viewer/activity-viewer.svelte index db652fa6f5..7579bd2a39 100644 --- a/web/src/lib/components/asset-viewer/activity-viewer.svelte +++ b/web/src/lib/components/asset-viewer/activity-viewer.svelte @@ -1,6 +1,5 @@ - -