Avatars: vervang eigen initialen-cirkels door nldd-avatar (NLDD 0.8.69) #130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
NLDD 0.8.69 introduceert
nldd-avatar: afbeelding -> initialen -> type-icoon als fallback-keten, met automatische terugval bij een dodesrc.Waggle heeft nu drie eigen implementaties van hetzelfde (initials()-util + border-radius: 50%-cirkel):
CardRow.vue(auteur-avatar, 2 plekken)ReactorPopover.vue(reactor-lijst)ThreadView.vue- inclusief een expliciete CSP-workaround omdat een kapotte avatar-afbeelding niet viaimg.style.displaynaar de initialen-fallback mag springen; precies dat gedrag zit nu ingebouwd in nldd-avatar.Vervangen door
nldd-avatar(type=person,namevoor de initialen,srcvoor de MM-avatar) ruimt de drie kopieën en de CSP-workaround op.Afhankelijk van PR #124 (bump naar ^0.8.69).
Done. Verified on main today: all three hand-rolled circles are gone.
CardDetailsModal.vue:181 and MentionProfilePopover.vue:83 picked it up too, which this issue did not ask for.
Two leftovers from the migration, folded into the current NLDD pass rather than kept here: ThreadView.vue:68-71 still carries the comment describing the old @error / CSP workaround that no longer exists, and ThreadView.vue:73 has a local initials() duplicating cardViewUtils.initials.