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 settings options mobile (#3838)
hq1316148e7882d
diff --git a/lib/plausible_web/templates/layout/site_settings.html.heex b/lib/plausible_web/templates/layout/site_settings.html.heexindex 13c70b18a3..6c1768267d 100644--- a/lib/plausible_web/templates/layout/site_settings.html.heex+++ b/lib/plausible_web/templates/layout/site_settings.html.heex@@ -12,11 +12,15 @@<div class="lg:grid lg:grid-cols-12 lg:gap-x-5 lg:mt-4"><div class="py-4 g:py-0 lg:col-span-3"><%= form_for @conn, "/sites/#{URI.encode_www_form(@site.domain)}/monthly-report/recipients", [class: "lg:hidden"], fn f -> %>- <%= select(f, :tab, flat_settings_options(@conn),+ <% options = flat_settings_options(@conn) %>+ <%= select(f, :tab, options,class:"dark:bg-gray-800 mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 dark:border-gray-500 outline-none focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md dark:text-gray-100",- onchange: "location.href = location.href.replace(/[^\/\/]*$/, event.target.value)",- selected: List.last(@conn.path_info)+ onchange:+ "location.href = '/" <>+ URI.encode_www_form(@site.domain) <> "/settings/' + event.target.value",+ selected:+ Enum.find_value(options, &(is_current_tab(@conn, elem(&1, 1)) && elem(&1, 1)))) %><% end %><div class="hidden lg:block">