Skip to content

Commit 3bd9227

Browse files
Merge pull request #189 from MaddyGuthridge/maddy-override-embed-style
Update Markdown styling to override sizing for YouTube embeds
2 parents 4a6b384 + 3ec4910 commit 3bd9227

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "minifolio",
3-
"version": "1.2.8",
3+
"version": "1.2.9",
44
"private": true,
55
"license": "GPL-3.0-only",
66
"scripts": {

src/components/markdown/Markdown.svelte

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,4 +211,16 @@
211211
text-decoration: underline;
212212
}
213213
}
214+
215+
/*
216+
YouTube embeds:
217+
- Force 16:9 aspect ratio
218+
- Override provided width and height
219+
*/
220+
:global(iframe[title="YouTube video player"]) {
221+
aspect-ratio: 16 / 9 !important;
222+
max-width: 100%;
223+
width: 500px !important;
224+
height: auto !important;
225+
}
214226
</style>

0 commit comments

Comments
 (0)