mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-02 18:51:52 +02:00
♻️ Standard avatar sizes (#1375)
This commit is contained in:
parent
b0e0a8f09c
commit
3c340bdf90
16 changed files with 120 additions and 275 deletions
|
@ -34,6 +34,7 @@ import { SubmitHandler, useForm } from "react-hook-form";
|
|||
import { useMount } from "react-use";
|
||||
import { z } from "zod";
|
||||
|
||||
import { OptimizedAvatarImage } from "@/components/optimized-avatar-image";
|
||||
import { useDeleteParticipantMutation } from "@/components/poll/mutations";
|
||||
import { Trans } from "@/components/trans";
|
||||
import { useFormValidation } from "@/utils/form-validation";
|
||||
|
@ -75,13 +76,18 @@ export const ParticipantDropdown = ({
|
|||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent align={align}>
|
||||
<DropdownMenuLabel>
|
||||
<div className="grid gap-0.5">
|
||||
<div>{participant.name}</div>
|
||||
{participant.email ? (
|
||||
<div className="text-muted-foreground text-xs font-normal">
|
||||
{participant.email}
|
||||
</div>
|
||||
) : null}
|
||||
<div className="flex items-center gap-x-2">
|
||||
<div>
|
||||
<OptimizedAvatarImage name={participant.name} size="md" />
|
||||
</div>
|
||||
<div className="grid gap-0.5">
|
||||
<div>{participant.name}</div>
|
||||
{participant.email ? (
|
||||
<div className="text-muted-foreground text-xs font-normal">
|
||||
{participant.email}
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
</DropdownMenuLabel>
|
||||
<DropdownMenuSeparator />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue