diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2023-03-19 22:46:04 +0200 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2023-03-19 22:46:04 +0200 |
commit | d1774f5a6d25242d659b1a08656de9e20fa84e26 (patch) | |
tree | b8c3a134baf9c88c56dc91e844add270e3937887 | |
parent | 4f5d35ffd22e8727c25ba0b028c0baade25cb32f (diff) | |
download | legit-d1774f5a6d25242d659b1a08656de9e20fa84e26.tar.gz legit-d1774f5a6d25242d659b1a08656de9e20fa84e26.tar.bz2 legit-d1774f5a6d25242d659b1a08656de9e20fa84e26.zip |
css: fix table overflow
Diffstat (limited to '')
-rw-r--r-- | static/style.css | 1 | ||||
-rw-r--r-- | 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" }} <html> -{{ template "head" . }} + {{ template "head" . }} {{ template "repoheader" . }} <body> {{ template "nav" . }} <main> <p>{{ .path }}</p> <div class="file-wrapper"> - <div class="line-numbers"> - {{- range .linecount }} -<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a> - {{- end -}} - </div> - <div class="file-content"> - <span></span> - <pre> - {{- .content -}} - </pre> - </div> + <table > + <tbody><tr> + <td class="line-numbers"> + <pre> + {{- range .linecount }} + <a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a> + {{- end -}} + </pre> + </td> + <td class="file-content"> + <pre> + {{- .content -}} + </pre> + </td> + </tbody></tr> + </table> + </div> </main> </body> </html> |