From 15b218f2f8d0429dca69ef8cdbdef4485ba0c745 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 13 Feb 2025 11:02:10 +0800 Subject: repo_tree_file: Add padding --- static/style.css | 3 +++ templates/repo_tree_file.html.tmpl | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/static/style.css b/static/style.css index 043da38..7869708 100644 --- a/static/style.css +++ b/static/style.css @@ -53,6 +53,9 @@ footer a:link, footer a:visited { max-width: 60rem; padding: 0 5px; } +.padding { + padding: 0 5px; +} a:link, a:visited { text-decoration-color: var(--text-decoration-color); color: var(--link-color); diff --git a/templates/repo_tree_file.html.tmpl b/templates/repo_tree_file.html.tmpl index be78efd..6931c4e 100644 --- a/templates/repo_tree_file.html.tmpl +++ b/templates/repo_tree_file.html.tmpl @@ -8,10 +8,12 @@ {{ template "header" . }} -

- /{{ .path_spec }} (raw) -

- {{ .file_contents }} +
+

+ /{{ .path_spec }} (raw) +

+ {{ .file_contents }} +
-- cgit v1.2.3