Fix manual embed width (#3910)

* fix manual embed width

* changelog
pull/3904/head
ruslandoga 3 years ago committed by GitHub
parent 4ae00540dc
commit 8c0e94f72c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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-12

@ -42,7 +42,7 @@ defmodule PlausibleWeb.StatsView do
def stats_container_class(conn) do
cond 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

Loading…
Cancel
Save