Skip to content

Commit

Permalink
fix: improve blog design on smaller screens (#2774)
Browse files Browse the repository at this point in the history
On smaller screens the video and text may overflow outside of the
screen. To
handle this add some breakpoints to contain those elements in.

---------

Co-authored-by: Michael Marszalek <[email protected]>
  • Loading branch information
AnInternetTroll and mimarz authored Nov 13, 2024
1 parent 6c59fc5 commit 918af79
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions apps/storefront/components/MdxContent/MdxContent.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,17 @@
}
}
}

@media screen and (max-width: 740px) {
.content {
margin-left: inherit;
margin-right: inherit;
}
}
@media screen and (max-width: 860px) {
.content video,
.content [data-iframe-video] {
width: auto;
margin-left: initial !important;
}
}

0 comments on commit 918af79

Please sign in to comment.