From 705274a92b34fd1ee7387ba217006cff7ff73be1 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Feb 2025 19:53:50 +0800 Subject: [PATCH] style.css, *.html: Scrolling behavior --- static/style.css | 12 ++++++------ templates/repo_commit.html.tmpl | 4 +++- templates/repo_index.html.tmpl | 10 +++++----- templates/repo_log.html.tmpl | 2 +- templates/repo_raw_dir.html.tmpl | 4 ++-- templates/repo_tree_dir.html.tmpl | 6 +++--- diff --git a/static/style.css b/static/style.css index 536560db6fc0d152969bd51df6d07f359062d0a2..9d90dca3d444da6c741a633a8c955022cfa1a530 100644 --- a/static/style.css +++ b/static/style.css @@ -46,12 +46,6 @@ margin: 1rem auto; max-width: 60rem; padding: 0 5px; } -.padding-wrapper > * { - width: 100%; -} -.padding-wrapper > table { - width: 100%; -} a:link, a:visited { text-decoration-color: var(--text-decoration-color); color: var(--link-color); @@ -65,6 +59,9 @@ table { border: var(--lighter-border-color) solid 1px; border-spacing: 0px; border-collapse: collapse; +} +table.wide { + width: 100%; } td, th { padding: 3px 5px; @@ -91,3 +88,6 @@ } .commit-id { font-family: monospace; } +pre, .scroll { + overflow-x: auto; +} diff --git a/templates/repo_commit.html.tmpl b/templates/repo_commit.html.tmpl index 3deec3d13571e000e5fb0a7789b6e20abcccbffe..c480c926b1a23a93c3f27db2dc2d7c9ada7ecbe3 100644 --- a/templates/repo_commit.html.tmpl +++ b/templates/repo_commit.html.tmpl @@ -6,7 +6,7 @@ {{ template "head_common" . }} {{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge -
+
@@ -40,6 +40,8 @@
{{ .commit_object.Message }}
+
+
{{ .patch }}

diff --git a/templates/repo_index.html.tmpl b/templates/repo_index.html.tmpl index 216e5f4c4139d71551e8d375b38612fa9cfeb99a..84ce662b1e6d379ddb3e79af405a25b45791d907 100644 --- a/templates/repo_index.html.tmpl +++ b/templates/repo_index.html.tmpl @@ -6,8 +6,8 @@ {{ template "head_common" . }} {{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge -
- +
+
@@ -33,8 +33,8 @@ {{- end }}
Recent Commits (see all)
-
- +
+
@@ -63,7 +63,7 @@
{{ if .readme }} -
/ on {{ .ref }}
+
diff --git a/templates/repo_log.html.tmpl b/templates/repo_log.html.tmpl index 9054c2d6e1f37ae7142d7a1cca4c6ffa4fc0ab89..74b9c3f4b0f947d5870c0ace578ccd3ebe52932b 100644 --- a/templates/repo_log.html.tmpl +++ b/templates/repo_log.html.tmpl @@ -6,7 +6,7 @@ {{ template "head_common" . }} Log of {{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge - +
diff --git a/templates/repo_raw_dir.html.tmpl b/templates/repo_raw_dir.html.tmpl index d2a280c4fd2085c1d4005545f39f87b77266ac57..6574ed42e974ab6b3552b36f9692bba48cf345c5 100644 --- a/templates/repo_raw_dir.html.tmpl +++ b/templates/repo_raw_dir.html.tmpl @@ -6,8 +6,8 @@ {{ template "head_common" . }} {{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – Lindenii Forge -
-
Commits on {{ .ref }}
+
+
diff --git a/templates/repo_tree_dir.html.tmpl b/templates/repo_tree_dir.html.tmpl index 99b6236e60aa6fb58c30b4a06d27005020267bc7..7db2035f939cbc199cf3a7441725c3023f59f5fd 100644 --- a/templates/repo_tree_dir.html.tmpl +++ b/templates/repo_tree_dir.html.tmpl @@ -6,8 +6,8 @@ {{ template "head_common" . }} {{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – Lindenii Forge -
- +
+
@@ -38,7 +38,7 @@
{{ if .readme }} - +
-- 2.48.1