mirror of
https://github.com/immich-app/immich.git
synced 2025-07-08 18:54:18 -04:00
fix(web): wrap long names with textarea (#19301)
This commit is contained in:
parent
910661e75c
commit
747a72120e
@ -370,16 +370,15 @@
|
|||||||
onToggleFavorite={() => handleToggleFavorite(person)}
|
onToggleFavorite={() => handleToggleFavorite(person)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<input
|
<textarea
|
||||||
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 p-2 text-sm text-immich-primary dark:text-immich-dark-primary resize-none field-sizing-content"
|
||||||
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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user