Skip to content

Commit

Permalink
feat: update grid item sizes in BookList and BookCard components in o…
Browse files Browse the repository at this point in the history
…rder to improve responsive view
  • Loading branch information
amalv committed Dec 21, 2023
1 parent 98949ba commit 0415a89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/BookList/BookList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const SearchInput = ({ search, setSearch }: SearchInputProps) => {
}}
>
<Grid container justifyContent="center">
<Grid item xs={8}>
<Grid item xs={10} md={8}>
<StyledTextField
label="Search by title"
variant="outlined"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface BookCardProps {
}

export const BookCard: React.FC<BookCardProps> = ({ book }) => (
<Grid item xs={12} sm={6} md={2} key={book.title}>
<Grid item xs={6} sm={4} md={4} lg={4} xl={2} key={book.title}>
<CardWrapper>
<CardActionAreaWrapper>
<Cover
Expand Down

0 comments on commit 0415a89

Please sign in to comment.