From d1774f5a6d25242d659b1a08656de9e20fa84e26 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sun, 19 Mar 2023 22:46:04 +0200 Subject: css: fix table overflow --- static/style.css | 1 + templates/file.html | 30 ++++++++++++++++++------------ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/static/style.css b/static/style.css index 2fa2e9d..cfffb82 100644 --- a/static/style.css +++ b/static/style.css @@ -258,6 +258,7 @@ a:hover { gap: 1rem; padding: 0.5rem; background: var(--light-gray); + overflow-x: auto; } .file-content { diff --git a/templates/file.html b/templates/file.html index 8898786..49bc19b 100644 --- a/templates/file.html +++ b/templates/file.html @@ -1,23 +1,29 @@ {{ define "file" }} -{{ template "head" . }} + {{ template "head" . }} {{ template "repoheader" . }} {{ template "nav" . }}

{{ .path }}

-
- {{- range .linecount }} -{{ . }} - {{- end -}} -
-
- -
-            {{- .content -}}
-          
-
+ + + + + +
+
+            {{- range .linecount }}
+ {{ . }}
+            {{- end -}}
+              
+
+
+             {{- .content -}}
+              
+
+
-- cgit