forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

appview: pages/templates/repo: fix styling for file tree items

Signed-off-by: Safwan Parkar <safwanparkar6@gmail.com>

Changed files
+3 -2
appview
pages
templates
repo
+3 -2
appview/pages/templates/repo/tree.html
···
{{ if .IsFile }}
{{ $icon = "file" }}
-
{{ $iconStyle = "size-4" }}
{{ end }}
<a href="{{ $link }}" class="{{ $linkstyle }}">
<div class="flex items-center gap-2">
-
{{ i $icon $iconStyle }}{{ .Name }}
</div>
</a>
</div>
···
{{ if .IsFile }}
{{ $icon = "file" }}
+
{{ $iconStyle = "flex-shrink-0 size-4" }}
{{ end }}
<a href="{{ $link }}" class="{{ $linkstyle }}">
<div class="flex items-center gap-2">
+
{{ i $icon $iconStyle }}
+
<span class="truncate">{{ .Name }}</span>
</div>
</a>
</div>