Skip to content

Commit

Permalink
markdown: fix embeds stretching mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Nov 28, 2024
1 parent 7a59270 commit 66badac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@

.embedWrapper {
--video-embed-width: 100%;
--video-embed-height: 100%;
--video-embed-aspect-ratio: 16 / 9;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
background: var(--box-content-bg-color);

--video-embed-width: 100%;
--video-embed-height: 100%;
--video-embed-aspect-ratio: 16 / 9;
}

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/common/YoutubeEmbed/index.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.embed {
width: var(--video-embed-width, 640px);
height: var(--video-embed-height, 480px);
aspect-ratio: var(--video-embed-aspect-ratio);
max-width: 100%;
aspect-ratio: var(--video-embed-aspect-ratio, 16 / 9);
border: 0;
}

0 comments on commit 66badac

Please sign in to comment.