fix(web): auto grow area extend when there is no content (#12197)

* fix(web): text area expand when there is no description

* use correct content
This commit is contained in:
Alex 2024-09-02 14:41:19 -05:00 committed by GitHub
parent 174de979db
commit 59507e557e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -476,7 +476,7 @@
<section class="px-6 pt-6 dark:text-immich-dark-fg">
<p class="pb-4 text-sm">{$t('appears_in').toUpperCase()}</p>
{#each albums as album}
<a data-sveltekit-preload-data="hover" href={`/albums/${album.id}`}>
<a href="{AppRoute.ALBUMS}/{album.id}">
<div class="flex gap-4 pt-2 hover:cursor-pointer items-center">
<div>
<img

View File

@ -16,7 +16,7 @@
// re-visit with svelte 5. runes will make this better.
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
newContent;
if (textarea) {
if (textarea && newContent.length > 0) {
void tick().then(() => autoGrowHeight(textarea));
}
}