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,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>