+ {dragHandle ? (
+
+ {dragHandle}
+
+ ) : null}
{character ? (
<>
- {teamLayout ? (
-
-
- #{(position ?? 0) + 1}
-
- {dragHandle}
-
- ) : null}
@@ -619,7 +613,7 @@ function SortableRecommendation({
variant="ghost"
size="icon-xs"
className="touch-none"
- aria-label="Drag to reorder character"
+ aria-label="Drag to reorder recommendation"
{...attributes}
{...listeners}
>
@@ -666,7 +660,7 @@ function VisualRecommendationGrid({
className={cn(
"grid gap-2",
teamLayout
- ? "grid-cols-[repeat(4,minmax(0,7.5rem))]"
+ ? "grid-cols-4 gap-1 sm:grid-cols-[repeat(4,minmax(0,7.5rem))] sm:gap-2"
: "grid-cols-[repeat(auto-fill,minmax(6rem,7.5rem))]",
)}
>
@@ -675,7 +669,6 @@ function VisualRecommendationGrid({
);
- return teamLayout ? (
-
+ return (
+
{card}
- ) : (
- card()
);
})}
{Array.from({ length: emptyCount }, (_, index) =>
@@ -723,7 +711,6 @@ function VisualRecommendationGrid({
)}
);
- if (!teamLayout) return cards;
const handleDragEnd = ({ active, over }: DragEndEvent) => {
if (!over || active.id === over.id) return;
const from = sortableIds.indexOf(String(active.id));
@@ -766,25 +753,23 @@ function SortableTeam({
style={{ transform: CSS.Transform.toString(transform), transition }}
className={cn(isDragging && "relative z-10 opacity-60")}
>
-
-
-
- Team {position + 1}
-
-
- {children}
-
-
+
+
+ Team {position + 1}
+
+
+ {children}
+
);
}
@@ -900,50 +885,33 @@ function BossRecommendationEditor({
]);
return (
-