Pi66

git.pi66.xyz
A web interface for the pi66.xyz Git server
git clone https://git.pi66.xyz/git.pi66.xyz

← back to log

feat: add diffstat label and fix table layout on commit page

author: pi66
date: 2026-07-23 09:30
hash: 5e3ce32fd289fb6824c0a18eb47acd37397e8cad

Diffstat:

M

src/templates/Log-commit.html
16 ++++++++++++++++++++++--------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/src/templates/Log-commit.html b/src/templates/Log-commit.html
index d209308..326e793 100644
--- a/src/templates/Log-commit.html
+++ b/src/templates/Log-commit.html
@@ -14,13 +14,21 @@

 </blockquote>

-<table class="diffstat ![direction:ltr] !w-full !table-fixed !border-0 px-6">
+<strong class="!pb-3 text-[80%] md:text-base"> Diffstat: </strong>
+
+
+<table class="diffstat ![direction:ltr] !w-full !border-0 px-6">
    <tbody>
 {% for b in bars %}
        <tr>
-           <td class="!text-gray-400 flex items-center gap-2.5"><p class="flex gap-2.5"><strong>{{b.file.status}}</strong></p>  {{b.file.name}}</td>
-           <td class="!text-right !text-gray-400">{{b.total}}</td>
-           <td>
+           <td class="!text-gray-400 w-full">
+               <div class="flex items-center gap-2.5">
+                   <p class="flex gap-2.5"><strong>{{b.file.status}}</strong></p>
+                   <span>{{b.file.name}}</span>
+               </div>
+           </td>
+           <td class="!text-right !text-gray-400 w-px whitespace-nowrap">{{b.total}}</td>
+           <td class="w-px whitespace-nowrap">
                <span class="!text-green-500">{{ "+" * b.add_width }}</span><span class="!text-red-500">{{ "-" * b.del_width }}</span>
            </td>
        </tr>