From d2de4418cfd5a6e52af6dca2179f3cf261185f40 Mon Sep 17 00:00:00 2001
From: Felix Eckhofer <felix@eckhofer.com>
Date: Sun, 22 Dec 2024 00:01:31 +0100
Subject: [PATCH] Avoid awkward line break by shortening menu item "My Profile"

---
 app/views/layouts/application.html.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 2b1e9d0..703f96f 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -25,7 +25,7 @@
         <% if user_signed_in? %>
         <span class="-mr-2 hidden lg:inline">logged in as</span>
         <%= render partial: 'application/user_avatar', locals: { user: current_user } %>
-        <%= link_to 'My Profile', edit_user_registration_path, class: 'hover:text-gray-900' %>
+        <%= link_to '<span class="hidden lg:inline">My </span>Profile'.html_safe, edit_user_registration_path, class: 'hover:text-gray-900', aria_label: "My Profile" %>
         <%= link_to 'My Assignments', user_assignments_path(current_user), class: 'hover:text-gray-900' %>
         <%= link_to 'Logout', destroy_user_session_path, data: { turbo_method: :delete }, class: 'hover:text-gray-900' %>
         <% else %>
-- 
GitLab