Improve mobile team equipment layout

This commit is contained in:
2026-09-01 15:33:42 +07:00 Unverified
parent 094b61ff32
commit aa0ba4be09
3 changed files with 22 additions and 22 deletions
+3 -3
View File
@@ -81,10 +81,10 @@ export function TeamSearch({ teams }: { teams: PublicGuide["teams"] }) {
className="min-w-0 rounded-lg p-1 text-center sm:p-2"
style={{ backgroundColor: elementBackgroundColor(member.character.element) }}
>
<div className="grid grid-cols-3 gap-2">
<div className="flex flex-col gap-2 sm:grid sm:grid-cols-3">
<div
className={cn(
"relative col-span-2 row-span-2 min-h-0 overflow-hidden rounded-lg bg-muted",
"relative aspect-square min-h-0 overflow-hidden rounded-lg bg-muted sm:col-span-2 sm:row-span-2 sm:aspect-auto",
rarityGradientClass(isCustomTravelerKey(member.character.key) ? 5 : member.character.rarity),
)}
>
@@ -98,7 +98,7 @@ export function TeamSearch({ teams }: { teams: PublicGuide["teams"] }) {
C{member.constellation}
</Kbd>
</div>
<div className="col-span-1 row-span-2 flex min-w-0 flex-col gap-2">
<div className="grid min-w-0 grid-cols-2 gap-2 sm:col-span-1 sm:row-span-2 sm:flex sm:flex-col">
{member.weapon ? (
<div
className={cn(