Changeset 99989f9 in Klonkt for src/views/partials/bottom-tab.ejs


Ignore:
Timestamp:
06/28/2026 04:57:19 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
201ec06
Parents:
74c5abc
Message:

feat(images): route all remaining avatars through avatar() (downscaled)

Wrap every avatar/profile-photo <img> src in avatar(): feed/comment/follow + nav, profile
header/sheet/bottom-tab, account, EPK hero, admin user list, site-edit preview. Local avatars
go through the thumb route, remote ones through the signed proxy. Covers (thumb()) untouched.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/bottom-tab.ejs

    r74c5abc r99989f9  
    8585            aria-label="Profiel menu" aria-haspopup="dialog">
    8686      <% if (user.avatar_url) { %>
    87         <img class="bottom-tab-avatar bottom-tab-avatar-img" src="<%= user.avatar_url %>" alt="">
     87        <img class="bottom-tab-avatar bottom-tab-avatar-img" src="<%= avatar(user.avatar_url, 128) %>" alt="">
    8888      <% } else { %>
    8989        <span class="bottom-tab-avatar"><%= user.username.charAt(0).toUpperCase() %></span>
Note: See TracChangeset for help on using the changeset viewer.