From 2a1555bae755958b615f0cfc4ef24f2b68a05dd9 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sat, 5 Apr 2025 23:29:53 +0300 Subject: [PATCH] appview: commits: ensure overflow-x on filenames --- appview/pages/templates/fragments/diff.html | 12 +++++++----- appview/pages/templates/repo/commit.html | 18 ++++++++++-------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/appview/pages/templates/fragments/diff.html b/appview/pages/templates/fragments/diff.html index 69a393c..76bd445 100644 --- a/appview/pages/templates/fragments/diff.html +++ b/appview/pages/templates/fragments/diff.html @@ -17,9 +17,10 @@
-
+
{{ $markerstyle := "diff-type p-1 mr-1 font-mono text-sm rounded select-none" }} +
{{ if .IsNew }} ADDED {{ else if .IsDelete }} @@ -33,22 +34,23 @@ {{ 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 }} +
{{ $iconstyle := "p-1 mx-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded" }} diff --git a/appview/pages/templates/repo/commit.html b/appview/pages/templates/repo/commit.html index eaaff45..3aecab7 100644 --- a/appview/pages/templates/repo/commit.html +++ b/appview/pages/templates/repo/commit.html @@ -46,15 +46,17 @@

Changed files - {{ range $diff }} - - {{ end }} +
-- 2.51.2