From c4ee6ba16ea46a57164be2015f357078498bbad3 Mon Sep 17 00:00:00 2001 From: Amin Salarkia Date: Tue, 15 Oct 2024 16:19:00 +0200 Subject: [PATCH] fix(ui): move minor icon to the start of the title of the release (#2047) When it was rendered at the end, it would not be rendered at all depending on the length of the commit message. Ref: SRX-8WMJ13 --- .../src/ui/components/ReleaseCard/ReleaseCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/frontend-service/src/ui/components/ReleaseCard/ReleaseCard.tsx b/services/frontend-service/src/ui/components/ReleaseCard/ReleaseCard.tsx index 7f6cf57a7..f72aaad06 100644 --- a/services/frontend-service/src/ui/components/ReleaseCard/ReleaseCard.tsx +++ b/services/frontend-service/src/ui/components/ReleaseCard/ReleaseCard.tsx @@ -201,7 +201,7 @@ export const ReleaseCard: React.FC = (props) => { ); - const firstLine = sourceMessage.split('\n')[0] + (isMinor ? '💤' : ''); + const firstLine = (isMinor ? '💤' : '') + sourceMessage.split('\n')[0]; return (