Skip to content

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

FIX: chat layout shift when loading videos (#23537)

Jan Cernikd9238fb01bf8
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-upload.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-upload.hbs
index 5af7e46ddaa..f96f0cb53e7 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat-upload.hbs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-upload.hbs
@@ -11,7 +11,7 @@
{{on "load" this.imageLoaded}}
/>
{{else if (eq this.type this.VIDEO_TYPE)}}
- <video class="chat-video-upload" preload="metadata" controls>
+ <video class="chat-video-upload" preload="metadata" height="150" controls>
<source src={{@upload.url}} />
</video>
{{else if (eq this.type this.AUDIO_TYPE)}}