Skip to content

Commit

Permalink
Solve issue with cards not fitting on smaller screens in Community Ha…
Browse files Browse the repository at this point in the history
…ndbook page

Signed-off-by: krish <[email protected]>
  • Loading branch information
krishkumar84 committed Aug 2, 2024
1 parent d25e6a7 commit 19503ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/AdventuresVol/adventures-vol.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const AdventuresVolWrapper = styled.div`
.handbook__card {
border-radius: 5px;
width: 25rem;
width: 100%;
max-width: 25rem;
box-shadow: 0 5px 10px ${props => props.theme.green00D3A9ToGreyE6E6E6};
overflow: hidden;
height: 19rem;
Expand Down
6 changes: 5 additions & 1 deletion src/components/HandbookCard/HandbookCard.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ export const HandbookCardWrapper = styled.div`
.handbook__card {
border-radius: 5px;
width: 25rem;
width: 100%;
max-width: 25rem;
box-shadow: 0 5px 10px ${props => props.theme.green00D3A9ToGreyE6E6E6};
overflow: hidden;
height: 19rem;
position: relative;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
@media (max-width: 420px) {
font-size: 1rem;
}
}
.handbook__card--head {
Expand Down

0 comments on commit 19503ca

Please sign in to comment.