From c91caee0934f827e5a981cbf185372e709aa9ed3 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 17 Apr 2025 14:12:55 +0100 Subject: [PATCH] appview: fix file-path overflow in diff view --- .../pages/templates/repo/fragments/diff.html | 69 ++++++++++--------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/appview/pages/templates/repo/fragments/diff.html b/appview/pages/templates/repo/fragments/diff.html index 65aac0d5..e237f56b 100644 --- a/appview/pages/templates/repo/fragments/diff.html +++ b/appview/pages/templates/repo/fragments/diff.html @@ -37,41 +37,42 @@
-
- {{ $markerstyle := "diff-type p-1 mr-1 font-mono text-sm rounded select-none" }} +
+
+ {{ $markerstyle := "diff-type p-1 mr-1 font-mono text-sm rounded select-none" }} + {{ if .IsNew }} + ADDED + {{ else if .IsDelete }} + DELETED + {{ else if .IsCopy }} + COPIED + {{ else if .IsRename }} + RENAMED + {{ else }} + MODIFIED + {{ end }} -
- {{ if .IsNew }} - ADDED - {{ else if .IsDelete }} - DELETED - {{ else if .IsCopy }} - COPIED - {{ else if .IsRename }} - RENAMED - {{ else }} - MODIFIED - {{ end }} - - {{ block "statPill" .Stats }} {{ end }} + {{ block "statPill" .Stats }} {{ end }} +
- {{ if .IsDelete }} - - {{ .Name.Old }} - - {{ else if (or .IsCopy .IsRename) }} - - {{ .Name.Old }} - - {{ i "arrow-right" "w-4 h-4" }} - - {{ .Name.New }} - - {{ else }} - - {{ .Name.New }} - - {{ end }} +
+ {{ if .IsDelete }} + + {{ .Name.Old }} + + {{ else if (or .IsCopy .IsRename) }} + + {{ .Name.Old }} + + {{ i "arrow-right" "w-4 h-4" }} + + {{ .Name.New }} + + {{ else }} + + {{ .Name.New }} + + {{ end }}
@@ -172,4 +173,4 @@ -{{ .Deletions }} {{ end }}
-{{ end }} \ No newline at end of file +{{ end }} -- 2.54.0