Handle long usernames gracefully (#3286)

This commit is contained in:
Samantaz Fox 2022-09-02 14:11:31 +02:00
commit 1e7d330350
No known key found for this signature in database
GPG Key ID: F42821059186176E

View File

@ -67,7 +67,7 @@
</a>
</div>
<% if env.get("preferences").as(Preferences).show_nick %>
<div class="pure-u-1-4">
<div class="pure-u-1-4" style="overflow: hidden; white-space: nowrap;">
<span id="user_name"><%= HTML.escape(env.get("user").as(Invidious::User).email) %></span>
</div>
<% end %>