aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-13 11:02:10 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-13 11:02:10 +0800
commit15b218f2f8d0429dca69ef8cdbdef4485ba0c745 (patch)
treef066e1c1c42a29fb23a0ecc217801a23a0f03112
parent{group_,}index: Use name_desc_t (diff)
downloadforge-15b218f2f8d0429dca69ef8cdbdef4485ba0c745.tar.gz
forge-15b218f2f8d0429dca69ef8cdbdef4485ba0c745.tar.zst
forge-15b218f2f8d0429dca69ef8cdbdef4485ba0c745.zip
repo_tree_file: Add padding
-rw-r--r--static/style.css3
-rw-r--r--templates/repo_tree_file.html.tmpl10
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 @@
</head>
<body class="repo-tree-file">
{{ template "header" . }}
- <p>
- /{{ .path_spec }} (<a href="/{{ .group_name }}/:/repos/{{ .repo_name }}/raw/{{ .path_spec }}{{ if not (eq .ref_type "head") }}?{{ .ref_type }}={{ .ref }}{{ end }}">raw</a>)
- </p>
- {{ .file_contents }}
+ <div class="padding">
+ <p>
+ /{{ .path_spec }} (<a href="/{{ .group_name }}/:/repos/{{ .repo_name }}/raw/{{ .path_spec }}{{ if not (eq .ref_type "head") }}?{{ .ref_type }}={{ .ref }}{{ end }}">raw</a>)
+ </p>
+ {{ .file_contents }}
+ </div>
<footer>
{{ template "footer" . }}
</footer>