Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: summary bar #22229

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions layouts/shortcodes/summary-bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@

<div class="flex flex-col bg-gray-light-200 bg-opacity-75 dark:bg-gray-dark-300 dark:bg-opacity-75 border-l-4 border-gray-light-200 px-4 py-1 my-1 not-prose">
{{ with $feature.subscription }}
<div class="flex flex-wrap items-start gap-1">
<span class="font-bold whitespace-nowrap">Subscription:</span>
<div class="flex flex-wrap gap-1">
<span class="font-bold">Subscription:</span>
{{ range . }}
<span class="flex-1">{{ . }}</span>
<span>{{ . }}</span>
<span class="icon-svg">
{{ $icon := index $subscriptionIcons . }}
{{ if $icon }}
Expand All @@ -41,9 +41,9 @@

{{ with $feature.availability }}
{{ $availabilityText := . }}
<div class="flex flex-wrap items-start gap-1">
<span class="font-bold whitespace-nowrap">Availability:</span>
<span class="flex-1">
<div class="flex flex-wrap gap-1">
<span class="font-bold">Availability:</span>
<span>
{{ $availabilityText }}
{{ range $key, $icon := $availabilityIcons }}
{{ if in $availabilityText $key }}
Expand All @@ -55,19 +55,19 @@
{{ end }}

{{ with $feature.requires }}
<div class="flex flex-wrap items-start gap-1">
<span class="font-bold whitespace-nowrap">Requires:</span>
<span class="flex-1">{{ . | markdownify }}</span>
<div class="flex flex-wrap gap-1">
<span class="font-bold">Requires:</span>
<span>{{ . | markdownify }}</span>
<span class="icon-svg">
{{ partial "icon" $requiresIcon }}
</span>
</div>
{{ end }}

{{ with $feature.for }}
<div class="flex flex-wrap items-start gap-1">
<span class="font-bold whitespace-nowrap">For:</span>
<span class="flex-1">{{ . }}</span>
<div class="flex flex-wrap gap-1">
<span class="font-bold">For:</span>
<span>{{ . }}</span>
<span class="icon-svg">
{{ partial "icon" $forIcon }}
</span>
Expand Down