{{ .path }}
-
+ + {{- range .linecount }} {{ . }} - {{- end -}} - - |
+
{{- .content -}}- + |
+
diff --git a/static/style.css b/static/style.css index 19c0891..23e2f75 100644 --- a/static/style.css +++ b/static/style.css @@ -180,6 +180,10 @@ a:hover { padding: 1rem 0 1rem 0; } +.commit-hash, .commit-email { + font-family: var(--mono-font); +} + .commit-email:before { content: '<'; } @@ -238,21 +242,24 @@ a:hover { -webkit-user-select: none; -o-user-select: none; user-select: none; + display: flex; + float: left; + flex-direction: column; + margin-right: 1ch; } .file-wrapper { - display: flex; - flex-direction: row; - grid-template-columns: 1rem minmax(0, 1fr); - gap: 1rem; - padding: 0.5rem; background: var(--light-gray); + display: table; + padding: 0.5rem + width: 100%; } .file-content { background: var(--light-gray); overflow-y: hidden; overflow-x: auto; + display: block; } .diff-type { diff --git a/templates/commit.html b/templates/commit.html index 2f05b46..4a01b77 100644 --- a/templates/commit.html +++ b/templates/commit.html @@ -11,13 +11,13 @@ {{- .commit.Message -}}
+
@@ -26,7 +26,7 @@
{{ if .commit.Parent }}
diff --git a/templates/file.html b/templates/file.html
index ab432d3..82a3384 100644
--- a/templates/file.html
+++ b/templates/file.html
@@ -8,18 +8,22 @@
{{ template "nav" . }}
{{ .path }}
+
+
+
+
+
+ {{- range .linecount }}
{{ . }}
- {{- end -}}
-
-
+
{{- .content -}}
-
+