From 6e5bd03f5ddbb2df109b07ff4514c1984f6a0ecb Mon Sep 17 00:00:00 2001 From: Ivan Gabriele Date: Mon, 7 Oct 2024 09:49:34 +0200 Subject: [PATCH] Fix styling in pno form sent message list --- .../shared/CardBodyHead/SentMessageList.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/frontend/src/features/PriorNotification/components/shared/CardBodyHead/SentMessageList.tsx b/frontend/src/features/PriorNotification/components/shared/CardBodyHead/SentMessageList.tsx index e5923e1524..0455287d81 100644 --- a/frontend/src/features/PriorNotification/components/shared/CardBodyHead/SentMessageList.tsx +++ b/frontend/src/features/PriorNotification/components/shared/CardBodyHead/SentMessageList.tsx @@ -26,11 +26,11 @@ export function SentMessageList({ detail, state }: SentMessageListProps) { <> {isFetching &&

Chargement en cours...

} {!isFetching && subscribers.length === 0 && ( -

+ {state === PriorNotification.State.FAILED_SEND ? `Aucune unité n'est inscrite à ce préavis.` : `Aucun message n’a été envoyé pour ce préavis.`} -

+ )} {!isFetching && subscribers.map(subsriber => ( @@ -52,7 +52,9 @@ export function SentMessageList({ detail, state }: SentMessageListProps) { {!isError && ( <> {isFetching &&

Chargement en cours...

} - {!isFetching && sentMessagesBatches.length === 0 &&

Aucun message n’a été envoyé pour ce préavis.

} + {!isFetching && sentMessagesBatches.length === 0 && ( + Aucun message n’a été envoyé pour ce préavis. + )} {!isFetching && sentMessagesBatches.length > 0 && ( {sentMessagesBatches.map(sentMessagesBatch => ( @@ -88,6 +90,11 @@ const Title = styled.p` margin: 16px 0 0; ` +const InfoMessage = styled.p` + color: ${p => p.theme.color.slateGray}; + font-style: italic; +` + const SubscriberRow = styled.address` background-color: ${p => p.theme.color.gainsboro}; display: flex; @@ -121,7 +128,7 @@ const HistoryItem = styled(Steps.Item)<{ $isSuccess: boolean }>` padding-bottom: 16px; - padding-left: 34px; + padding-left: 24px; > .rs-steps-item-icon-wrapper { border-radius: 0;