mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: replace first and last name with single field (#4915)
This commit is contained in:
parent
413ab2c538
commit
7fca0d8da5
98 changed files with 567 additions and 1147 deletions
|
|
@ -9,8 +9,7 @@
|
|||
|
||||
interface User {
|
||||
id: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
name: string;
|
||||
email: string;
|
||||
profileImagePath: string;
|
||||
}
|
||||
|
|
@ -51,7 +50,7 @@
|
|||
|
||||
$: colorClass = colorClasses[autoColor ? getUserColor() : color];
|
||||
$: sizeClass = sizeClasses[size];
|
||||
$: title = `${user.firstName} ${user.lastName} (${user.email})`;
|
||||
$: title = `${user.name} (${user.email})`;
|
||||
$: interactiveClass = interactive
|
||||
? 'border-2 border-immich-primary hover:border-immich-dark-primary dark:hover:border-immich-primary dark:border-immich-dark-primary transition-colors'
|
||||
: '';
|
||||
|
|
@ -82,7 +81,7 @@
|
|||
class:font-medium={!autoColor}
|
||||
class:font-semibold={autoColor}
|
||||
>
|
||||
{((user.firstName[0] || '') + (user.lastName[0] || '')).toUpperCase()}
|
||||
{(user.name[0] || '').toUpperCase()}
|
||||
</span>
|
||||
{/if}
|
||||
</figure>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue