fix: use InnerDeindent for filetree shortcode rendering (#613)

This commit is contained in:
Xin 2025-03-11 21:42:16 +00:00 committed by GitHub
parent 2b83a3762f
commit a2718d8aa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<div class="hextra-filetree hx-mt-6 hx-select-none hx-text-sm hx-text-gray-800 dark:hx-text-gray-300 not-prose"> <div class="hextra-filetree hx-mt-6 hx-select-none hx-text-sm hx-text-gray-800 dark:hx-text-gray-300 not-prose">
<div class="hx-inline-block hx-rounded-lg hx-border hx-px-4 hx-py-2 dark:hx-border-neutral-800"> <div class="hx-inline-block hx-rounded-lg hx-border hx-px-4 hx-py-2 dark:hx-border-neutral-800">
{{- .Inner -}} {{- .InnerDeindent -}}
</div> </div>
</div> </div>

View File

@ -12,6 +12,6 @@
<span class="ltr:hx-ml-1 rtl:hx-mr-1">{{ $name }}</span> <span class="ltr:hx-ml-1 rtl:hx-mr-1">{{ $name }}</span>
</button> </button>
<ul data-state="{{ $state }}" class="ltr:hx-pl-5 rtl:hx-pr-5 data-[state=closed]:hx-hidden"> <ul data-state="{{ $state }}" class="ltr:hx-pl-5 rtl:hx-pr-5 data-[state=closed]:hx-hidden">
{{- .Inner -}} {{- .InnerDeindent -}}
</ul> </ul>
</li> </li>