From 2c3b245050f5bb16a96dc473b9dd67fb06112c19 Mon Sep 17 00:00:00 2001 From: Erwan Leboucher Date: Sun, 26 Jul 2026 13:56:53 +0200 Subject: [PATCH] Fix notification row actions being spread across the row --- src/app/pages/client/inbox/Notifications.tsx | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/app/pages/client/inbox/Notifications.tsx b/src/app/pages/client/inbox/Notifications.tsx index 093cf4676..51318f35e 100644 --- a/src/app/pages/client/inbox/Notifications.tsx +++ b/src/app/pages/client/inbox/Notifications.tsx @@ -1,6 +1,6 @@ import type { MouseEventHandler } from 'react'; import { useEffect, useMemo, useRef, useState } from 'react'; -import { Avatar, Box, Chip, Header, IconButton, Scroll, Text, config, toRem } from 'folds'; +import { Avatar, Badge, Box, Chip, Header, IconButton, Scroll, Text, config, toRem } from 'folds'; import { ArrowLeft, CaretUp, @@ -97,18 +97,12 @@ function NotificationItem({ event={event} renderContent={renderContent} actions={ - <> + // One element: MessagePreview drops this straight into a + // justifyContent="SpaceBetween" row, so separate children get spread + // across its full width instead of grouping on the right. + {!isRead && ( - + )} Open @@ -116,7 +110,7 @@ function NotificationItem({ Done - + } onOpen={handleOpen} hour24Clock={hour24Clock}