diff --git a/static/styles.css b/static/styles.css
index 5336a8a..ad44583 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -68,6 +68,16 @@ p {
margin-top: 0.5em;
}
+iframe {
+ width: 100%;
+ height: 500px;
+}
+@media (max-width: 580px) {
+ iframe {
+ height: 250px;
+ }
+}
+
.background {
position: fixed;
top: 0;
diff --git a/static/styles.scss b/static/styles.scss
index a72116d..cc6641e 100644
--- a/static/styles.scss
+++ b/static/styles.scss
@@ -141,6 +141,13 @@ a {
p {
margin-top: 0.5em;
}
+iframe {
+ width: 100%;
+ height: 500px;
+ @media (max-width: 580px) {
+ height: 250px;
+ }
+}
.background {
position: fixed;
top: 0;
diff --git a/templates/head.html b/templates/head.html
index d414c17..d6e4565 100644
--- a/templates/head.html
+++ b/templates/head.html
@@ -60,5 +60,5 @@
{{end}}
-
+
diff --git a/utils.go b/utils.go
index b94df8c..33e224a 100644
--- a/utils.go
+++ b/utils.go
@@ -285,7 +285,7 @@ func sanitizeXSS(html string) string {
p.AllowElements("video", "source", "iframe")
p.AllowAttrs("controls", "width").OnElements("video")
p.AllowAttrs("src", "width").OnElements("source")
- p.AllowAttrs("height", "width", "src", "frameborder").OnElements("iframe")
+ p.AllowAttrs("src", "frameborder").OnElements("iframe")
return p.Sanitize(html)
}