feat: update AnnuncioFooter to conditionally hide video label when no videos are present

This commit is contained in:
Marco Pedone 2026-03-09 10:18:58 +01:00
parent b861d43520
commit 43d67dceb8

View file

@ -686,7 +686,14 @@ const AnnuncioFooter = ({
const { t } = useTranslation();
return (
<div className="flex flex-col gap-2">
<p className="px-2 font-semibold text-lg">Video:</p>
<p
className={cn(
"px-2 font-semibold text-lg",
videos.length === 0 && external_videos.length === 0 && "hidden",
)}
>
Video:
</p>
<div className="flex flex-col flex-wrap gap-4 sm:flex-row sm:gap-2 sm:px-2">
{videos.map((video) => {
return (