Changeset 04a6b15 in Klonkt


Ignore:
Timestamp:
06/16/2026 08:22:12 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
3f893bf
Parents:
8ea3d0d
Message:

Circle header scalable: max 6 chips + "+N more" pill + total count

With many circle sites, all chips wrapped into a wall that pushed the feed
down. Now: first 6 named chips + a "+N more" pill (with remaining names in
the tooltip) + "N sites in your circle" line. Compact regardless of count.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/circle-feed.ejs

    r8ea3d0d r04a6b15  
    1313  <p class="cirkel-sub">Wat er speelt bij de andere sites in mijn cirkel.</p>
    1414  <% if (typeof sites !== 'undefined' && sites && sites.length) { %>
     15    <% var _max = 6; var _more = sites.slice(_max); %>
    1516    <div class="cirkel-members">
    16       <% sites.forEach(function(s){ %>
     17      <% sites.slice(0, _max).forEach(function(s){ %>
    1718        <% if (s.url) { %><a class="cirkel-member" href="<%= s.url %>" target="_blank" rel="noopener" title="<%= s.name %>"><% } else { %><span class="cirkel-member" title="<%= s.name %>"><% } %>
    1819          <span class="cirkel-avatar"<% if (s.avatar) { %> style="background-image:url('<%= s.avatar %>')"<% } %>><% if (!s.avatar) { %><%= (s.name || '?').charAt(0).toUpperCase() %><% } %></span>
     
    2021        <% if (s.url) { %></a><% } else { %></span><% } %>
    2122      <% }); %>
     23      <% if (_more.length) { %>
     24        <span class="cirkel-member cirkel-member--more" title="<%= _more.map(function(s){ return s.name; }).join(', ') %>">+<%= _more.length %> meer</span>
     25      <% } %>
    2226    </div>
     27    <% if (sites.length > _max) { %>
     28      <p class="cirkel-count"><%= sites.length %> sites in je cirkel</p>
     29    <% } %>
    2330  <% } %>
    2431</div>
     
    7380  font-weight: 700; font-size: .82rem; }
    7481.cirkel-member-name { font-size: .9rem; font-weight: 600; }
     82.cirkel-member--more { padding: .28rem .85rem; font-size: .85rem; font-weight: 700; color: var(--ink-muted); cursor: default; }
     83.cirkel-member--more:hover { border-color: var(--rule); transform: none; }
     84.cirkel-count { color: var(--ink-muted); font-size: .82rem; margin: .6rem 0 0; }
    7585.cirkel-empty { color: var(--ink-muted); text-align: center; margin: 2rem auto; }
    7686.cirkel-empty a { color: var(--accent); }
Note: See TracChangeset for help on using the changeset viewer.