Skip to content

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

UI: Add viewport meta tag to embedded topics layout

Penar Musaraj8f601d5025e1
diff --git a/app/views/layouts/embed.html.erb b/app/views/layouts/embed.html.erb
index b7b714fbc5e..42b70d08fe5 100644
--- a/app/views/layouts/embed.html.erb
+++ b/app/views/layouts/embed.html.erb
@@ -2,7 +2,7 @@
<html<%= raw @embeddable_css_class -%>>
<head>
<meta charset="utf-8">
-
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover">
<%= discourse_stylesheet_link_tag 'embed', theme_ids: nil %>
<%- unless customization_disabled? %>
<%= discourse_stylesheet_link_tag :embedded_theme %>