Skip to content

Commit e18ad5f

Browse files
committed
Pin calendar badge logo to 20x20 with native width/height attrs
The logo rendered oversized in the field (user report w/ screenshot); Tailwind sizing classes alone weren't enough to constrain it in that environment. Adding native width/height HTML attributes makes the sizing robust independent of CSS load order/purge state — verified locally that the image stays pinned at 20x20 even with Tailwind CSS disabled entirely.
1 parent e765ced commit e18ad5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎themes/powershell-community/layouts/partials/calendar-user-group-badge.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<a href="{{ $group.RelPermalink }}" class="inline-flex items-center gap-1.5 text-blue-600 hover:text-blue-700">
88
<span class="inline-flex items-center justify-center w-5 h-5 rounded-full bg-blue-100 overflow-hidden shrink-0">
99
{{ if $group.Params.logo }}
10-
<img src="{{ $group.Params.logo }}" alt="{{ $group.Title }} logo" class="w-full h-full object-contain">
10+
<img src="{{ $group.Params.logo }}" alt="{{ $group.Title }} logo" width="20" height="20" class="w-full h-full object-contain">
1111
{{ else }}
1212
<i class="fas fa-people-group text-[10px]"></i>
1313
{{ end }}

0 commit comments

Comments
 (0)