From 705274a92b34fd1ee7387ba217006cff7ff73be1 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Feb 2025 19:53:50 +0800 Subject: 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 +++--- 6 files changed, 20 insertions(+), 18 deletions(-) diff --git a/static/style.css b/static/style.css index 536560d..9d90dca 100644 --- a/static/style.css +++ b/static/style.css @@ -46,12 +46,6 @@ footer a:link, footer a:visited { 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); @@ -66,6 +60,9 @@ table { border-spacing: 0px; border-collapse: collapse; } +table.wide { + width: 100%; +} td, th { padding: 3px 5px; border: var(--lighter-border-color) solid 1px; @@ -91,3 +88,6 @@ td#readme > *:first-child { .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 3deec3d..c480c92 100644 --- a/templates/repo_commit.html.tmpl +++ b/templates/repo_commit.html.tmpl @@ -6,7 +6,7 @@ {{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge -
+
@@ -40,6 +40,8 @@
+
+
{{ .patch }}

diff --git a/templates/repo_index.html.tmpl b/templates/repo_index.html.tmpl index 216e5f4..84ce662 100644 --- a/templates/repo_index.html.tmpl +++ b/templates/repo_index.html.tmpl @@ -6,8 +6,8 @@ {{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge -
- +
+
@@ -33,8 +33,8 @@
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 9054c2d..74b9c3f 100644 --- a/templates/repo_log.html.tmpl +++ b/templates/repo_log.html.tmpl @@ -6,7 +6,7 @@ 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 d2a280c..6574ed4 100644 --- a/templates/repo_raw_dir.html.tmpl +++ b/templates/repo_raw_dir.html.tmpl @@ -6,8 +6,8 @@ {{ .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 99b6236..7db2035 100644 --- a/templates/repo_tree_dir.html.tmpl +++ b/templates/repo_tree_dir.html.tmpl @@ -6,8 +6,8 @@ {{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – Lindenii Forge -
- +
+
@@ -38,7 +38,7 @@
{{ if .readme }} - +
-- cgit v1.2.3