From 2203dfa093479c4b50050df70b3b95ea46e13ff7 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Thu, 10 Oct 2019 13:13:58 +0800 Subject: [PATCH] Improve mobile experience --- assets/css/app.css | 19 ++++++------------- .../templates/stats/stats.html.eex | 14 +++++++------- 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/assets/css/app.css b/assets/css/app.css index 2bbea503b..7f38b126a 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -63,6 +63,12 @@ blockquote { @tailwind utilities; +#main-graph { + @screen sm { + height: 460px; + } +} + a { color: inherit; } @@ -191,19 +197,6 @@ a { left: auto; } - -.group:hover > .group-hover-fill-red > svg { - fill: #ff6978!important; -} - -.group:hover > .group-hover-fill-red { - color: #ff6978; -} - -.group-hover-fill-red svg { - transition: all .1 ease-in; -} - .feather { height: 1em; width: 1em; diff --git a/lib/plausible_web/templates/stats/stats.html.eex b/lib/plausible_web/templates/stats/stats.html.eex index 53d3104fb..7788a4304 100644 --- a/lib/plausible_web/templates/stats/stats.html.eex +++ b/lib/plausible_web/templates/stats/stats.html.eex @@ -6,17 +6,17 @@ <% end %>
-
-

Analytics for <%= link(@site.domain, to: "//" <> @site.domain, target: "_blank") %>

-
+
+

Analytics for <%= link(@site.domain, to: "//" <> @site.domain, target: "_blank") %>

+
<%= @current_visitors %> current visitors
-
-
+
+
<%= if @query.period == "month" do %>
<%= link(to: "/#{@site.domain}?period=month&date=#{@query.date_range.first |> Timex.shift(months: -1) |> Timex.format!("{ISOdate}")}", class: "flex items-center px-2 border-r border-grey-light") do %> @@ -47,7 +47,7 @@
<% end %> -
+
<%= timeframe_text(@site, @query) %> @@ -74,7 +74,7 @@
-
+