From bbf0e9a0342038506e1a697fd6e28ceb86f3a7b4 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 26 Nov 2022 16:42:20 +0200 Subject: [PATCH] BuildCard: Move mode icons inside popup --- app/components/BuildCard.tsx | 30 +++++++++++++++--------------- app/styles/common.css | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/components/BuildCard.tsx b/app/components/BuildCard.tsx index 8b7d96a17..f73c8a16b 100644 --- a/app/components/BuildCard.tsx +++ b/app/components/BuildCard.tsx @@ -71,19 +71,6 @@ export function BuildCard({ build, owner, canEdit = false }: BuildProps) {

{title}

- {modes && modes.length > 0 && ( -
- {modes.map((mode) => ( - - ))} -
- )}
{owner && ( @@ -154,14 +141,27 @@ export function BuildCard({ build, owner, canEdit = false }: BuildProps) { path={navIconUrl("analyzer")} /> - {description && ( + {description || (modes && modes.length > 0) ? ( } triggerClassName="minimal tiny build__small-text" > + {modes && modes.length > 0 && ( +
+ {modes.map((mode) => ( + + ))} +
+ )} {description}
- )} + ) : null} {canEdit && ( <>