Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Add max width to embed

Uku Taht8ab6edd73fd7
diff --git a/assets/css/app.css b/assets/css/app.css
index 0c28796060..922e6958e7 100644
--- a/assets/css/app.css
+++ b/assets/css/app.css
@@ -73,7 +73,7 @@ blockquote {
@screen lg {
.main-graph {
- padding-top: calc(451 / 1088 * 100%);
+ padding-top: calc(28px + (451 / 1088 * 100%));
}
}
diff --git a/lib/plausible_web/templates/stats/stats.html.eex b/lib/plausible_web/templates/stats/stats.html.eex
index a4ce361546..67bd6f14c6 100644
--- a/lib/plausible_web/templates/stats/stats.html.eex
+++ b/lib/plausible_web/templates/stats/stats.html.eex
@@ -1,4 +1,4 @@
-<div class="<%= if [email protected][:embedded], do: "container" %>" data-site-domain="<%= @site.domain %>">
+<div class="<%= if [email protected][:embedded], do: "container", else: "max-w-screen-lg mx-auto" %>" data-site-domain="<%= @site.domain %>">
<%= if @offer_email_report do %>
<div class="w-full px-4 text-sm font-bold text-center text-blue-900 bg-blue-200 rounded transition" style="top: 91px" role="alert">
<%= link("Click here to enable weekly email reports →", to: "/#{URI.encode_www_form(@site.domain)}/settings/email-reports", class: "py-2 block") %>