file: separate content and line numbers
Anirudh Oppiliappan x@icyphox.sh
Mon, 19 Dec 2022 17:52:42 +0530
2 files changed,
6 insertions(+),
2 deletions(-)
M
static/style.css
→
static/style.css
@@ -229,9 +229,13 @@ display: flex;
flex-direction: row; grid-template-columns: 1rem minmax(0, 1fr); gap: 1rem; - overflow: scroll; padding: 0.5rem; background: var(--light-gray); +} + +.file-content { + background: var(--light-gray); + overflow: scroll; } .commit-info {
M
templates/file.html
→
templates/file.html
@@ -14,7 +14,7 @@ {{- range .linecount }}
<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a> {{- end -}} </div> - <div> + <div class="file-content"> <span></span> <pre> {{- .content -}}