Skip to content

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

Hide user name overlay on mobile (#3829)

hq1c822f8de1e14
diff --git a/lib/plausible_web/templates/layout/_header.html.heex b/lib/plausible_web/templates/layout/_header.html.heex
index 457d410355..de0402c7fd 100644
--- a/lib/plausible_web/templates/layout/_header.html.heex
+++ b/lib/plausible_web/templates/layout/_header.html.heex
@@ -40,7 +40,7 @@
<li class="w-full sm:w-auto">
<.dropdown>
<:button class="flex items-center gap-3 px-3 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800">
- <span class="font-medium truncate dark:text-gray-100">
+ <span class="font-medium truncate dark:text-gray-100 hidden md:block">
<%= @conn.assigns[:current_user].name %>
</span>
<%= img_tag(Plausible.Auth.User.profile_img_url(@conn.assigns[:current_user]),