Shrink prediction buttons
Adjust the prediction option buttons to be smaller and fit on one line: - reduce gap from 2 to 1.5 - make each button 8x8 with extra small text and padding removed X-Lovable-Edit-ID: edt-decfb124-7935-4ae9-bfd0-f42c3b1cfe81
This commit is contained in:
commit
f4f633f420
1 changed files with 2 additions and 2 deletions
|
|
@ -409,10 +409,10 @@ const LadybugClockPuzzle: React.FC<LadybugClockPuzzleProps> = ({
|
||||||
<p className="text-sm text-muted-foreground mb-3">
|
<p className="text-sm text-muted-foreground mb-3">
|
||||||
Which number do you think is most likely to be painted last?
|
Which number do you think is most likely to be painted last?
|
||||||
</p>
|
</p>
|
||||||
<div className="flex flex-wrap gap-2">
|
<div className="flex flex-wrap gap-1.5">
|
||||||
{Array.from({
|
{Array.from({
|
||||||
length: numPositions - 1
|
length: numPositions - 1
|
||||||
}, (_, i) => i + 1).map(pos => <Button key={pos} onClick={() => setUserPrediction(pos)} variant={userPrediction === pos ? "default" : "outline"} size="sm" className="w-10 h-10">
|
}, (_, i) => i + 1).map(pos => <Button key={pos} onClick={() => setUserPrediction(pos)} variant={userPrediction === pos ? "default" : "outline"} size="sm" className="w-8 h-8 text-xs p-0">
|
||||||
{positionToNumber(pos)}
|
{positionToNumber(pos)}
|
||||||
</Button>)}
|
</Button>)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue