use 3 columns for grid on wider screens
This isn't as great for modeling cards, but it's fine imo, and it's much better for item list cards (where there's practically no badges)
This commit is contained in:
parent
d1262f77d7
commit
0d7efb2357
2 changed files with 4 additions and 3 deletions
|
@ -100,7 +100,7 @@ function ItemsPage() {
|
|||
|
||||
return (
|
||||
<Box>
|
||||
<Heading1 marginBottom="8">
|
||||
<Heading1 marginBottom="6">
|
||||
{isCurrentUser ? "Items you own" : `Items ${data.user.username} owns`}
|
||||
</Heading1>
|
||||
<ItemCardList>
|
||||
|
@ -118,7 +118,7 @@ function ItemsPage() {
|
|||
))}
|
||||
</ItemCardList>
|
||||
|
||||
<Heading1 marginBottom="8" marginTop="8">
|
||||
<Heading1 marginBottom="6" marginTop="8">
|
||||
{isCurrentUser ? "Items you want" : `Items ${data.user.username} wants`}
|
||||
</Heading1>
|
||||
<ItemCardList>
|
||||
|
|
|
@ -29,6 +29,7 @@ function ItemCard({ item, badges, ...props }) {
|
|||
borderColor={borderColor}
|
||||
className="item-card"
|
||||
width="100%"
|
||||
minWidth="0"
|
||||
{...props}
|
||||
>
|
||||
<ItemCardContent
|
||||
|
@ -178,7 +179,7 @@ function ItemName({ children, isDisabled, focusSelector, ...props }) {
|
|||
|
||||
export function ItemCardList({ children }) {
|
||||
return (
|
||||
<SimpleGrid columns={{ sm: 1, lg: 2 }} spacing="6">
|
||||
<SimpleGrid columns={{ sm: 1, md: 2, lg: 3 }} spacing="6">
|
||||
{children}
|
||||
</SimpleGrid>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue