2024-12-14 23:44:10 +00:00
|
|
|
{{- $content := .content -}}
|
|
|
|
{{- $emoji := .emoji -}}
|
|
|
|
{{- $icon := .icon -}}
|
|
|
|
|
2025-03-29 12:51:42 +00:00
|
|
|
{{- $defaultClass := "hx:border-orange-100 hx:bg-orange-50 hx:text-orange-800 hx:dark:border-orange-400/30 hx:dark:bg-orange-400/20 hx:dark:text-orange-300" -}}
|
2024-12-14 23:44:10 +00:00
|
|
|
|
|
|
|
{{- $class := .class | default $defaultClass -}}
|
|
|
|
|
|
|
|
|
2025-03-29 12:51:42 +00:00
|
|
|
<div class="hx:overflow-x-auto hx:mt-6 hx:flex hx:rounded-lg hx:border hx:py-2 hx:ltr:pr-4 hx:rtl:pl-4 hx:contrast-more:border-current hx:contrast-more:dark:border-current {{ $class }}">
|
|
|
|
<div class="hx:ltr:pl-3 hx:ltr:pr-2 hx:rtl:pr-3 hx:rtl:pl-2">
|
2024-12-14 23:44:10 +00:00
|
|
|
{{- with $emoji -}}
|
2025-03-29 12:51:42 +00:00
|
|
|
<div class="hx:select-none hx:text-xl" style="font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';">
|
2024-12-14 23:44:10 +00:00
|
|
|
{{- . -}}
|
|
|
|
</div>
|
|
|
|
{{- else -}}
|
|
|
|
{{- with $icon -}}
|
2025-03-29 12:51:42 +00:00
|
|
|
{{ partial "utils/icon.html" (dict "name" . "attributes" `height=1.2em class="hx:inline-block hx:align-middle"`) -}}
|
2024-12-14 23:44:10 +00:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
</div>
|
|
|
|
|
2025-03-29 12:51:42 +00:00
|
|
|
<div class="hx:w-full hx:min-w-0 hx:leading-7">
|
|
|
|
<div class="hx:mt-6 hx:leading-7 hx:first:mt-0">
|
2024-12-14 23:44:10 +00:00
|
|
|
{{- $content -}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|