Skip to content

Commit 175160b

Browse files
committed
fix: move tag badges below linked alert card
1 parent 13799ad commit 175160b

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

apps/web/src/components/field/scouting-tab.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -837,21 +837,6 @@ export default function ScoutingTab({ fieldId, mapInstance }: ScoutingTabProps)
837837
</div>
838838
)}
839839

840-
{/* Tags */}
841-
{obs.tags && obs.tags.length > 0 && (
842-
<div className="flex flex-wrap items-center gap-1 mt-2">
843-
{obs.tags.map((tag) => (
844-
<Badge
845-
key={tag}
846-
variant="secondary"
847-
className="text-[9px] px-1.5 py-0 h-4"
848-
>
849-
{tag}
850-
</Badge>
851-
))}
852-
</div>
853-
)}
854-
855840
{/* Linked alert card */}
856841
{obs.alert_id && (() => {
857842
const linked = fieldAlerts.find((a) => a.id === obs.alert_id);
@@ -873,6 +858,21 @@ export default function ScoutingTab({ fieldId, mapInstance }: ScoutingTabProps)
873858
</div>
874859
);
875860
})()}
861+
862+
{/* Tags */}
863+
{obs.tags && obs.tags.length > 0 && (
864+
<div className="flex flex-wrap items-center gap-1 mt-2">
865+
{obs.tags.map((tag) => (
866+
<Badge
867+
key={tag}
868+
variant="secondary"
869+
className="text-[9px] px-1.5 py-0 h-4"
870+
>
871+
{tag}
872+
</Badge>
873+
))}
874+
</div>
875+
)}
876876
</div>
877877
))}
878878
</div>

apps/web/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)