Skip to content

A platform for community discussion. Free, open, simple.

UX: Prevent twitter onebox iframes from being taller than mobie viewport

Kris1232889b3080
diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scss
index eecdbb6c936..e1a6a3dfb7d 100644
--- a/app/assets/stylesheets/common/base/onebox.scss
+++ b/app/assets/stylesheets/common/base/onebox.scss
@@ -233,6 +233,13 @@ aside.onebox {
max-height: 100%;
float: none;
}
+
+ @include breakpoint(mobile-extra-large) {
+ // Prevent twitter embeds from being taller than the mobile viewport
+ iframe {
+ max-height: 70vh;
+ }
+ }
}
&.user-onebox {