diff --git a/frontend/components/messages/messages-view.tsx b/frontend/components/messages/messages-view.tsx
index ea07eff..6f7e04c 100644
--- a/frontend/components/messages/messages-view.tsx
+++ b/frontend/components/messages/messages-view.tsx
@@ -42,6 +42,7 @@ import { Bubble, BubbleContent } from "@/components/ui/bubble";
import { Button } from "@/components/ui/button";
import {
Message,
+ MessageAvatar,
MessageContent,
MessageFooter,
MessageHeader,
@@ -200,6 +201,7 @@ export function MessagesView() {
const { t } = useTranslation();
const { data: session } = authClient.useSession();
const myId = session?.user?.id ?? "";
+ const myInitials = initials(session?.user?.name ?? "");
const router = useRouter();
@@ -694,6 +696,19 @@ export function MessagesView() {
!newDay && (startsGroup ? "mt-4" : "mt-1"),
)}
>
+ {/* Avatar at the bottom of each run (messenger-style); a
+ spacer keeps stacked bubbles aligned otherwise. */}
+ {endsGroup ? (
+
+
+
+ {out ? myInitials : initials(m.senderName)}
+
+
+
+ ) : (
+
+ )}
{selected.isGroup && !out && startsGroup && (
{m.senderName}
diff --git a/frontend/components/patients/patient-detail.tsx b/frontend/components/patients/patient-detail.tsx
index c46d84b..3092611 100644
--- a/frontend/components/patients/patient-detail.tsx
+++ b/frontend/components/patients/patient-detail.tsx
@@ -238,31 +238,35 @@ export function PatientDetail({
return (
-
-
- {patient.initials}
-
-
-
-
- {patient.name}
-
-
- {t(`patients.status.${patient.status}`)}
-
-
-
{idLine}
- {patient.alerts.length > 0 && (
-
- {patient.alerts.map((alert) => (
-
- {alert}
-
- ))}
+
+ {/* Identity — full width so the name never gets squeezed by the actions. */}
+
+
+ {patient.initials}
+
+
+
+
+ {patient.name}
+
+
+ {t(`patients.status.${patient.status}`)}
+
- )}
+
{idLine}
+ {patient.alerts.length > 0 && (
+
+ {patient.alerts.map((alert) => (
+
+ {alert}
+
+ ))}
+
+ )}
+
-
+ {/* Actions — their own wrapping row beneath the identity. */}
+
)
)}
- setPage(Math.min(totalPages, safePage + 1))}
- render={}
- size="default"
+ size="sm"
+ type="button"
+ variant="ghost"
>
{t("patients.pagination.next")}
-
+