Skip to content

Commit

Permalink
on smallest screens stacked Team logo and name vertically
Browse files Browse the repository at this point in the history
  • Loading branch information
kepsteen committed Oct 11, 2024
1 parent 83271df commit 1e66c56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/WeeklyPickButton/WeeklyPickButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,20 @@ const WeeklyPickButton: React.FC<WeeklyPickButtonProps> = ({
data-testid="team-radio"
/>

<Label htmlFor={team} data-testid="team-label" disabled={isDisabled}>
<Label
htmlFor={team}
data-testid="team-label"
disabled={isDisabled}
className="flex-col xs:flex-row"
>
<Image
src={src}
alt={team}
width={48}
height={48}
priority
data-testid="team-image"
className="h-6 w-6 sm:h-12 sm:w-12"
className="h-12 w-12"
/>
{loadingTeamName === selectedTeam ? <LoadingSpinner /> : <>{team}</>}
</Label>
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ module.exports = {
gridTemplateRows: {
'adminLayout': '5rem auto',
},
screens: {
'xs': '400px'
}
},
},
plugins: [require('tailwindcss-animate')],
Expand Down

0 comments on commit 1e66c56

Please sign in to comment.