Allow collapsible blocks to be tightly together

This commit is contained in:
2024-12-30 18:18:56 +01:00
parent fc16fb4046
commit af883f2f6e
6 changed files with 12 additions and 8 deletions
@@ -1,6 +1,6 @@
{{ $id := delimit (shuffle (seq 1 9)) "" }}
<div class="collapsible-block">
<div class="collapsible-block {{- with .Get "class" }} {{ . }}{{ end }}">
<input id="{{ .Get "id" | default $id }}" type="checkbox" {{ if ( eq ( .Get "isCollapsed" ) "true" ) -}} checked
{{- end }} />
<label for="{{ .Get "id" | default $id }}">