From 926c704fddb2ed2e78ccd25adecd71010884c9d5 Mon Sep 17 00:00:00 2001 From: "Carlos (Almeira)" Date: Wed, 22 Apr 2026 15:46:14 -0500 Subject: [PATCH] fix(ui): hide NewsCard footer separator when date and footer text are empty --- src/components/NewsCard.tsx | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/components/NewsCard.tsx b/src/components/NewsCard.tsx index 99b4cb1..5e367db 100644 --- a/src/components/NewsCard.tsx +++ b/src/components/NewsCard.tsx @@ -92,23 +92,25 @@ export const NewsCard = ({

{/* Footer del card */} -
- - {showFooterDate ? ( -
- - {fechaFormateada} -
- ) : ( - footerText || "" + {(showFooterDate || footerText) && ( +
+ + {showFooterDate ? ( +
+ + {fechaFormateada} +
+ ) : ( + footerText || "" + )} +
+ {showFooterButton && footerText && ( +
+ +
)} - - {showFooterButton && footerText && ( -
- -
- )} -
+
+ )} );