diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss index a468756f0dc..021758c387e 100644 --- a/app/assets/stylesheets/common/base/topic-post.scss +++ b/app/assets/stylesheets/common/base/topic-post.scss @@ -1536,6 +1536,11 @@ span.mention { } } +iframe { + max-width: 100%; + max-height: #{"min(1000px, 200vh)"}; +} + .post-admin-menu { display: inline-flex; flex-direction: column; diff --git a/app/assets/stylesheets/desktop/topic-post.scss b/app/assets/stylesheets/desktop/topic-post.scss index d3a00db886e..fac39efdf38 100644 --- a/app/assets/stylesheets/desktop/topic-post.scss +++ b/app/assets/stylesheets/desktop/topic-post.scss @@ -373,10 +373,6 @@ button.expand-post { margin-left: var(--topic-body-width-padding); } -iframe { - max-width: 100%; -} - video { max-height: 500px; } diff --git a/app/assets/stylesheets/mobile/topic-post.scss b/app/assets/stylesheets/mobile/topic-post.scss index 450774aaac5..80c1562d81d 100644 --- a/app/assets/stylesheets/mobile/topic-post.scss +++ b/app/assets/stylesheets/mobile/topic-post.scss @@ -276,10 +276,6 @@ span.post-count { z-index: z("tooltip"); } -iframe { - max-width: 100%; -} - .btn-group { margin-top: 25px; position: relative;