Changeset 5bc67b4 in Klonkt for src/views/pages/following.ejs


Ignore:
Timestamp:
06/28/2026 09:20:04 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
abc8959
Parents:
492fc20
Message:

fix(images): 96px feed/comment/follow avatars (2x of the 44px display)

A 128px avatar thumbnail shown at 44px = ~2.9x browser downscale → still jagged for
line-art. Serve the small fediverse avatars at 96px (~2.2x, the same crisp ratio as the grid).

  • services/ThumbnailService.js — add 96 to the size whitelist
  • views/pages/news.ejs, partials/fedi-node.ejs, pages/following.ejs — avatar(..., 96)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/following.ejs

    r492fc20 r5bc67b4  
    2020      <% following.forEach(function(f){ %>
    2121        <li class="tl-foll">
    22           <span class="tl-foll-av"><% if (f.icon) { %><img src="<%= avatar(f.icon, 128) %>" alt=""><% } else { %><%= (f.name || '?').charAt(0).toUpperCase() %><% } %></span>
     22          <span class="tl-foll-av"><% if (f.icon) { %><img src="<%= avatar(f.icon, 96) %>" alt=""><% } else { %><%= (f.name || '?').charAt(0).toUpperCase() %><% } %></span>
    2323          <span class="tl-foll-meta">
    2424            <a href="<%= f.url || f.actor_uri %>" target="_blank" rel="nofollow noopener"><%= f.name || f.handle %></a>
Note: See TracChangeset for help on using the changeset viewer.