Skip to content

Commit a13e5e1

Browse files
authored
Also apply max-width to videos in webviews (microsoft#159500)
1 parent 71c216d commit a13e5e1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

extensions/markdown-language-features/media/markdown.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ ol ol {
113113
margin-bottom: 0;
114114
}
115115

116-
img {
116+
img, video {
117117
max-width: 100%;
118118
max-height: 100%;
119119
}

src/vs/workbench/contrib/webview/browser/pre/index-no-csp.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
padding: 0 20px;
100100
}
101101
102-
img {
102+
img, video {
103103
max-width: 100%;
104104
max-height: 100%;
105105
}

src/vs/workbench/contrib/webview/browser/pre/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="UTF-8">
66

77
<meta http-equiv="Content-Security-Policy"
8-
content="default-src 'none'; script-src 'sha256-JpX/ganPoxpavjxWCz9DUZgwVZ59o2lwSYTQrziPsdU=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
8+
content="default-src 'none'; script-src 'sha256-EDTzzejMryXNJsvXPm3ha4m5Mi6h2Y//JRojh+K0+bY=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
99

1010
<!-- Disable pinch zooming -->
1111
<meta name="viewport"
@@ -100,7 +100,7 @@
100100
padding: 0 20px;
101101
}
102102
103-
img {
103+
img, video {
104104
max-width: 100%;
105105
max-height: 100%;
106106
}

0 commit comments

Comments
 (0)