diff --git a/appview/pages/templates/repo/fragments/diff.html b/appview/pages/templates/repo/fragments/diff.html index f4759fc7..aee3b511 100644 --- a/appview/pages/templates/repo/fragments/diff.html +++ b/appview/pages/templates/repo/fragments/diff.html @@ -8,11 +8,13 @@ #filesToggle:not(:checked) ~ div div#resize-files { display: none; } - {{ template "diffTopbar" . }} - {{ block "diffLayout" . }} {{ end }} - {{ template "fragments/resizable" }} - {{ template "activeFileHighlight" }} - {{ template "fragments/line-quote-button" }} +
+ {{ template "diffTopbar" . }} + {{ block "diffLayout" . }} {{ end }} + {{ template "fragments/resizable" }} + {{ template "activeFileHighlight" }} + {{ template "fragments/line-quote-button" }} +
{{ end }} {{ define "diffTopbar" }} @@ -86,7 +88,7 @@ {{ $id := index . 0 }} {{ $target := index . 1 }} {{ $direction := index . 2 }} -
{{ end }} {{ define "activeFileHighlight" }} {{ end }} diff --git a/appview/pages/templates/repo/fragments/diffOpts.html b/appview/pages/templates/repo/fragments/diffOpts.html index edb995d2..64a6785a 100644 --- a/appview/pages/templates/repo/fragments/diffOpts.html +++ b/appview/pages/templates/repo/fragments/diffOpts.html @@ -4,24 +4,32 @@ {{ $active = "split" }} {{ end }} - {{ $unified := - (dict - "Key" "unified" - "Value" "unified" - "Icon" "square-split-vertical" - "Meta" "") }} - {{ $split := - (dict - "Key" "split" - "Value" "split" - "Icon" "square-split-horizontal" - "Meta" "") }} - {{ $values := list $unified $split }} + {{ $activeTab := "bg-white dark:bg-gray-700 shadow-sm" }} + {{ $inactiveTab := "bg-gray-100 dark:bg-gray-800 shadow-inner" }} - {{ template "fragments/tabSelector" - (dict - "Name" "diff" - "Values" $values - "Active" $active) }} +
+ + +
{{ end }} -