Skip to content

Commit

Permalink
Fix scrolling on mobile (#1189)
Browse files Browse the repository at this point in the history
Some card effects were causing extra scrollbars to appear and break
scrolling on small devices. We just disable those on mobile.
  • Loading branch information
nmattia authored Jan 31, 2023
1 parent 7a9181a commit b097599
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/frontend/src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,13 @@ a:hover,
border-radius: var(--vs-border-radius);
}

/* c-cards pretty much fill up the screen on small devices so we disable rounding */
@media (max-width: 512px) {
.c-card {
border-radius: 0;
}
}

.c-card--highlight,
.c-card--background {
padding: var(--rs-card-bezel);
Expand Down Expand Up @@ -549,6 +556,13 @@ a:hover,
filter: blur(8px);
}

/* c-cards pretty much fill up the screen on so disable the effect which causes scrolling issues */
@media (max-width: 512px) {
.c-card--background::after {
inset: 0;
}
}

.c-card--background::before {
position: absolute;
content: "";
Expand Down

0 comments on commit b097599

Please sign in to comment.