git-preview @ main

static git web frontend but with images and html previews + code truncation

file: separate content and line numbers
Mon, 19 Dec 2022
2 files changed, 6 insertions(+), 2 deletions(-)
M 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);

… preview truncated

M 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 -}}