Skip to content

Commit 747a721

Browse files
fix(web): wrap long names with textarea (#19301)
1 parent 910661e commit 747a721

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

web/src/routes/(user)/people/+page.svelte

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,16 +370,15 @@
370370
onToggleFavorite={() => handleToggleFavorite(person)}
371371
/>
372372

373-
<input
374-
type="text"
375-
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"
373+
<textarea
374+
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"
376375
value={person.name}
377376
placeholder={$t('add_a_name')}
378377
use:shortcut={{ shortcut: { key: 'Enter' }, onShortcut: (e) => e.currentTarget.blur() }}
379378
onfocusin={() => onNameChangeInputFocus(person)}
380379
onfocusout={() => onNameChangeSubmit(newName, person)}
381380
oninput={(event) => onNameChangeInputUpdate(event)}
382-
/>
381+
></textarea>
383382
</div>
384383
{/snippet}
385384
</PeopleInfiniteScroll>

0 commit comments

Comments
 (0)