diff --git a/app/assets/stylesheets/application/compose.css.scss b/app/assets/stylesheets/application/compose.css.scss
index 27cbad424..57dd885aa 100644
--- a/app/assets/stylesheets/application/compose.css.scss
+++ b/app/assets/stylesheets/application/compose.css.scss
@@ -299,6 +299,10 @@
webkit-border-radius: 4px;
ms-border-radius: 4px;
}
+ video {
+ max-width: 100%;
+ height: auto;
+ }
}
#wmd-preview {
border: 1px dashed $gray;
diff --git a/app/assets/stylesheets/application/topic-post.css.scss b/app/assets/stylesheets/application/topic-post.css.scss
index 7aa59c178..dc9a4078d 100644
--- a/app/assets/stylesheets/application/topic-post.css.scss
+++ b/app/assets/stylesheets/application/topic-post.css.scss
@@ -527,6 +527,10 @@
img {
max-width: 100%;
}
+ video {
+ max-width: 100%;
+ height: auto;
+ }
.topic-body {
position: relative;
.contents {
diff --git a/lib/oneboxer/video_onebox.rb b/lib/oneboxer/video_onebox.rb
index 2af9938f6..032aa59ef 100644
--- a/lib/oneboxer/video_onebox.rb
+++ b/lib/oneboxer/video_onebox.rb
@@ -6,7 +6,7 @@ module Oneboxer
matcher /^https?:\/\/.*\.(mov|mp4|ogg)$/
def onebox
- ""
+ ""
end
end