revert: fix(web): wrap long names with textarea (#19305)

Revert "fix(web): wrap long names with textarea (#19301)"

This reverts commit 747a72120ebcf79a069d1265a42b341ac89980d4.
This commit is contained in:
Zack Pollard 2025-06-19 17:28:10 +01:00 committed by GitHub
parent 10e2ec2841
commit f9435a538b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -370,15 +370,16 @@
onToggleFavorite={() => handleToggleFavorite(person)} onToggleFavorite={() => handleToggleFavorite(person)}
/> />
<textarea <input
class="bg-white dark:bg-immich-dark-gray border-gray-100 placeholder-gray-400 text-center dark:border-gray-900 w-full rounded-2xl mt-2 p-2 text-sm text-immich-primary dark:text-immich-dark-primary resize-none field-sizing-content" type="text"
class=" bg-white dark:bg-immich-dark-gray border-gray-100 placeholder-gray-400 text-center dark:border-gray-900 w-full rounded-2xl mt-2 py-2 text-sm text-immich-primary dark:text-immich-dark-primary"
value={person.name} value={person.name}
placeholder={$t('add_a_name')} placeholder={$t('add_a_name')}
use:shortcut={{ shortcut: { key: 'Enter' }, onShortcut: (e) => e.currentTarget.blur() }} use:shortcut={{ shortcut: { key: 'Enter' }, onShortcut: (e) => e.currentTarget.blur() }}
onfocusin={() => onNameChangeInputFocus(person)} onfocusin={() => onNameChangeInputFocus(person)}
onfocusout={() => onNameChangeSubmit(newName, person)} onfocusout={() => onNameChangeSubmit(newName, person)}
oninput={(event) => onNameChangeInputUpdate(event)} oninput={(event) => onNameChangeInputUpdate(event)}
></textarea> />
</div> </div>
{/snippet} {/snippet}
</PeopleInfiniteScroll> </PeopleInfiniteScroll>