From 15b218f2f8d0429dca69ef8cdbdef4485ba0c745 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 13 Feb 2025 11:02:10 +0800 Subject: [PATCH] repo_tree_file: Add padding --- static/style.css | 3 +++ templates/repo_tree_file.html.tmpl | 10 ++++++---- diff --git a/static/style.css b/static/style.css index 043da387ed9bd9151c17b3c8d6341a19869ea276..7869708c74cec6e15fe5c0ed45fe05fabab7ac0f 100644 --- a/static/style.css +++ b/static/style.css @@ -53,6 +53,9 @@ margin: 1rem auto; 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 be78efdeee0cad2cd1c6d7a876807fa657c5d967..6931c4ec696051ab3a7857884ba7d1c39280bfa6 100644 --- a/templates/repo_tree_file.html.tmpl +++ b/templates/repo_tree_file.html.tmpl @@ -8,10 +8,12 @@ {{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }} – Lindenii Forge {{ template "header" . }} -

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

- {{ .file_contents }} +
+

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

+ {{ .file_contents }} +
-- 2.48.1