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
|
|
@ -26,8 +26,7 @@
|
|||
|
||||
<div>
|
||||
<p class="text-center text-lg font-medium text-immich-primary dark:text-immich-dark-primary">
|
||||
{user.firstName}
|
||||
{user.lastName}
|
||||
{user.name}
|
||||
</p>
|
||||
<p class="text-sm text-gray-500 dark:text-immich-dark-fg">{user.email}</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@
|
|||
out:fade={{ delay: 200, duration: 150 }}
|
||||
class="absolute -bottom-12 right-5 rounded-md border bg-gray-500 p-2 text-[12px] text-gray-100 shadow-md dark:border-immich-dark-gray dark:bg-immich-dark-gray"
|
||||
>
|
||||
<p>{user.firstName} {user.lastName}</p>
|
||||
<p>{user.name}</p>
|
||||
<p>{user.email}</p>
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -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