Skip to content

Commit 1a27927

Browse files
committed
Update badge tpl
1 parent 9575c8d commit 1a27927

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

templates/components/badge.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<span class="inline-block py-1 px-3 {{ pill ? 'rounded-full' : 'rounded' }} {{ bg ? bg : 'bg-gray-800' }}
2-
{{ text_sm ? 'text-sm' : 'text-xs' }} {{ txt ? txt : 'text-white' }}{{ class|space }}">
1+
<span class="inline-block py-1 px-3 {{ pill ? 'rounded-full' : 'rounded' }} {{ bg ? bg : 'bg-gray-800' }} text-xs {{ txt ? txt : 'text-white' }}{{ class|space }}">
32
{{- text|raw -}}
43
</span>

templates/partials/info.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% if extension_version %}
33
<div class="mb-5 text-lg">
44
PHP <span class="font-semibold">{{ title }}</span> extension
5-
{{ include('components/badge.twig', {text: 'v' ~ extension_version, text_sm: true, bg: 'bg-' ~ color ~ '-500'}) }}
5+
{{ include('components/badge.twig', {text: 'v' ~ extension_version, bg: 'bg-' ~ color ~ '-500', class: 'font-semibold'}) }}
66
</div>
77
{% endif %}
88

0 commit comments

Comments
 (0)