Skip to content

Commit

Permalink
Corrige l'affichage des tags personnalisés
Browse files Browse the repository at this point in the history
  • Loading branch information
mariheck committed Dec 10, 2024
1 parent da38778 commit 871e351
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Description = ({ fiche }: FicheActionPdfProps) => {
/>
))}
{libresTag?.map((tagPerso) => (
<Badge key={tagPerso.id} title={tagPerso.nom} state="grey" />
<Badge key={tagPerso.id} title={tagPerso.nom} state="default" />
))}
</Stack>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,14 @@ const FicheActionDescription = ({
>
<div
className={classNames('flex justify-between items-start', {
'max-sm:-mb-4 -mb-8': !thematiques || !thematiques?.length,
'max-sm:-mb-4 -mb-8':
(!thematiques || !thematiques?.length) && !libresTag?.length,
})}
>
{/* Liste des thématiques et sous-thématiques sous forme de badges */}
{(thematiques?.length || sousThematiques?.length) && (
{(thematiques?.length ||
sousThematiques?.length ||
libresTag?.length) && (
<div className="flex flex-wrap gap-3">
{thematiques?.map((thematique) => (
<Badge
Expand Down

0 comments on commit 871e351

Please sign in to comment.