diff --git a/appview/pages/templates/repo/fragments/diff.html b/appview/pages/templates/repo/fragments/diff.html --- a/appview/pages/templates/repo/fragments/diff.html +++ b/appview/pages/templates/repo/fragments/diff.html @@ -4,7 +4,7 @@ #filesToggle:checked ~ div label[for="filesToggle"] .show-text { display: none; } #filesToggle:checked ~ div label[for="filesToggle"] .hide-text { display: inline; } #filesToggle:not(:checked) ~ div label[for="filesToggle"] .hide-text { display: none; } #filesToggle:checked ~ div div#files { width: fit-content; max-width: 15vw; margin-right: 1rem; } - #filesToggle:not(:checked) ~ div div#files { width: 0; display: hidden; margin-right: 0; } + #filesToggle:not(:checked) ~ div div#files { width: 0; display: none; margin-right: 0; } {{ template "diffTopbar" . }} @@ -14,12 +14,16 @@ {{ define "diffTopbar" }} {{ $diff := index . 0 }} {{ $opts := index . 1 }} + {{ $root := "" }} + {{ if gt (len .) 2 }} + {{ $root = index . 2 }} + {{ end }} {{ block "filesCheckbox" $ }} {{ end }} {{ block "subsCheckbox" $ }} {{ end }} -