Changeset 5bc67b4 in Klonkt for src/views/partials/fedi-node.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/partials/fedi-node.ejs

    r492fc20 r5bc67b4  
    11<%# Renders one fediverse thread node (n). Expects: n, t, canManageSite, _base, siteAvatar, formatDateTime, postSlug %>
    22<div class="comment-avatar">
    3   <% if (n.actor_icon) { %><img src="<%= avatar(n.actor_icon, 128) %>" alt="" loading="lazy">
     3  <% if (n.actor_icon) { %><img src="<%= avatar(n.actor_icon, 96) %>" alt="" loading="lazy">
    44  <% } else { %><span><%= (n.actor_name || '?').charAt(0).toUpperCase() %></span><% } %>
    55</div>
Note: See TracChangeset for help on using the changeset viewer.