Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Fix manual embed width (#3910)
ruslandoga8c0e94f72cf5
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c8574f63b4..79c78e6aa8 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -67,6 +67,7 @@ All notable changes to this project will be documented in this file.- Fix crash when using special characters in filter plausible/analytics#3634- Fix automatic scrolling to the bottom on the dashboard if previously selected properties tab plausible/analytics#3872- Allow running the container with arbitrary UID plausible/analytics#2986+- Fix `width=manual` in embedded dashboards plausible/analytics#3910## v2.0.0 - 2023-07-12diff --git a/lib/plausible_web/views/stats_view.ex b/lib/plausible_web/views/stats_view.exindex 16bdfabc3a..6400d26257 100644--- a/lib/plausible_web/views/stats_view.ex+++ b/lib/plausible_web/views/stats_view.ex@@ -42,7 +42,7 @@ defmodule PlausibleWeb.StatsView dodef stats_container_class(conn) docond do- conn.assigns[:embedded] && conn.assigns[:width] == "manual" -> ""+ conn.assigns[:embedded] && conn.params["width"] == "manual" -> "px-6"conn.assigns[:embedded] -> "max-w-screen-xl mx-auto px-6"!conn.assigns[:embedded] -> "container print:max-w-full"end