Skip to content

Commit e9ae508

Browse files
feat: display pieces in single row for mobile h&b games (#196)
* fix: cap movemap at 40% (#187) (#188) * Initial plan * Simplify mobile Hand & Brain UI - display pieces in single row Co-authored-by: kevinjosethomas <[email protected]> --------- Co-authored-by: Kevin Thomas <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: kevinjosethomas <[email protected]>
1 parent 9a35096 commit e9ae508

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Play/HandBrainPlayControls.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export const HandBrainPlayControls: React.FC<Props> = ({
114114
<p className="text-center text-xs font-semibold uppercase tracking-wide text-human-2">
115115
SELECT PIECE
116116
</p>
117-
<div className="mx-auto grid max-w-48 grid-cols-3 gap-2">
117+
<div className="mx-auto grid max-w-full grid-cols-6 gap-1 md:max-w-48 md:grid-cols-3 md:gap-2">
118118
{pieceTypes.map((p) => (
119119
<button
120120
key={p}
@@ -124,7 +124,7 @@ export const HandBrainPlayControls: React.FC<Props> = ({
124124
!playerActive ||
125125
!!selectedPiece
126126
}
127-
className={`flex h-12 w-12 items-center justify-center border transition-colors duration-200 ${
127+
className={`flex h-10 w-10 items-center justify-center border transition-colors duration-200 md:h-12 md:w-12 ${
128128
movablePieceTypes.indexOf(p) !== -1 &&
129129
playerActive &&
130130
!selectedPiece
@@ -134,7 +134,7 @@ export const HandBrainPlayControls: React.FC<Props> = ({
134134
>
135135
<img
136136
src={`/assets/pieces/${pieceColorMap[color[0] + p]}.svg`}
137-
className="h-6 w-6"
137+
className="h-5 w-5 md:h-6 md:w-6"
138138
alt={pieceColorMap[color[0] + p]}
139139
/>
140140
</button>

0 commit comments

Comments
 (0)