css: fix table overflow

This commit is contained in:
Anirudh Oppiliappan 2023-03-19 22:46:04 +02:00
parent 4f5d35ffd2
commit d1774f5a6d
No known key found for this signature in database
GPG Key ID: 8A93F96F78C5D4C4
2 changed files with 19 additions and 12 deletions

View File

@ -258,6 +258,7 @@ a:hover {
gap: 1rem;
padding: 0.5rem;
background: var(--light-gray);
overflow-x: auto;
}
.file-content {

View File

@ -1,22 +1,28 @@
{{ define "file" }}
<html>
{{ template "head" . }}
{{ template "head" . }}
{{ template "repoheader" . }}
<body>
{{ template "nav" . }}
<main>
<p>{{ .path }}</p>
<div class="file-wrapper">
<div class="line-numbers">
<table >
<tbody><tr>
<td class="line-numbers">
<pre>
{{- range .linecount }}
<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
{{- end -}}
</div>
<div class="file-content">
<span></span>
</pre>
</td>
<td class="file-content">
<pre>
{{- .content -}}
</pre>
</td>
</tbody></tr>
</table>
</div>
</main>
</body>