aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-10 08:30:39 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-10 08:37:23 +0800
commitc339ab02c2db423125f6b3c1a19606cd5a4c793e (patch)
tree5e5a95a6a1f3f72847b89554b5d3951fde5b3af1
parentrepo_index: Only display first four characters of os_mode (diff)
downloadforge-c339ab02c2db423125f6b3c1a19606cd5a4c793e.tar.gz
forge-c339ab02c2db423125f6b3c1a19606cd5a4c793e.tar.zst
forge-c339ab02c2db423125f6b3c1a19606cd5a4c793e.zip
reop_index.html, style.css: padding-wrapper
-rw-r--r--static/style.css14
-rw-r--r--templates/repo_index.html9
2 files changed, 20 insertions, 3 deletions
diff --git a/static/style.css b/static/style.css
index 533cee1..461286a 100644
--- a/static/style.css
+++ b/static/style.css
@@ -1,3 +1,13 @@
-.commit-id {
- font-family: monospace;
+html {
+ font-family: sans-serif;
+}
+
+.padding-wrapper {
+ padding: 0 1rem;
+ max-width: 50em;
+ margin: 0 auto;
+}
+
+#readme, #file-tree {
+ width: 100%;
}
diff --git a/templates/repo_index.html b/templates/repo_index.html
index 13bac72..776b84e 100644
--- a/templates/repo_index.html
+++ b/templates/repo_index.html
@@ -6,6 +6,7 @@
<title>{{ .project_name }}/repos/{{ .repo_name }}</title>
</head>
<body class="repo-index">
+<div class="padding-wrapper">
<table id="recent-commits">
<thead>
<tr>
@@ -30,10 +31,11 @@
{{- end }}
</tbody>
</table>
+</div>
+<div class="padding-wrapper">
<table id="file-tree">
<thead>
<tr>
-<!--th scope="col">Blob/Tree ID</th-->
<th scope="col">Mode</th>
<th scope="col">Name</th>
<th scope="col">Size</th>
@@ -49,11 +51,16 @@
{{- end }}
</tbody>
</table>
+</div>
+<div class="padding-wrapper">
<div id="refs">
</div>
+</div>
+<div class="padding-wrapper">
<div id="readme">
{{ .readme -}}
</div>
+</div>
</body>
</html>
{{- end -}}