mirror of
https://github.com/discourse/discourse.git
synced 2025-04-16 17:30:15 +08:00
FIX: Include lazyYT-container in cooked post HTML (#9870)
This applies the new styles without waiting for the JS to run.
This commit is contained in:
parent
b48299f81c
commit
979093787f
@ -32,7 +32,7 @@ class Onebox::Engine::YoutubeOnebox
|
||||
escaped_title = ERB::Util.html_escape(video_title)
|
||||
|
||||
<<~EOF
|
||||
<div class="onebox lazyYT"
|
||||
<div class="onebox lazyYT lazyYT-container"
|
||||
data-youtube-id="#{video_id}"
|
||||
data-youtube-title="#{escaped_title}"
|
||||
data-width="#{video_width}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user