diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-11 19:53:50 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-11 19:53:50 +0800 |
commit | 705274a92b34fd1ee7387ba217006cff7ff73be1 (patch) | |
tree | 1dbf942d9ea7ff62981c2f49556a955c5267bf77 | |
parent | repo_{index,tree_dir}.html, style.css: No inner margins on README td's (diff) | |
download | forge-705274a92b34fd1ee7387ba217006cff7ff73be1.tar.gz forge-705274a92b34fd1ee7387ba217006cff7ff73be1.tar.zst forge-705274a92b34fd1ee7387ba217006cff7ff73be1.zip |
style.css, *.html: Scrolling behavior
Diffstat (limited to '')
-rw-r--r-- | static/style.css | 12 | ||||
-rw-r--r-- | templates/repo_commit.html.tmpl | 4 | ||||
-rw-r--r-- | templates/repo_index.html.tmpl | 10 | ||||
-rw-r--r-- | templates/repo_log.html.tmpl | 2 | ||||
-rw-r--r-- | templates/repo_raw_dir.html.tmpl | 4 | ||||
-rw-r--r-- | 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 @@ <title>{{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge</title> </head> <body class="repo-commit"> - <div class="padding-wrapper"> + <div class="padding-wrapper scroll"> <table id="commit-info-table"> <thead> <tr class="title-row"> @@ -40,6 +40,8 @@ </tr> </tbody> </table> + </div> + <div class="padding-wrapper scroll"> <pre>{{ .patch }}</pre> <p> </p> 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 @@ <title>{{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge</title> </head> <body class="repo-index"> - <div class="padding-wrapper"> - <table id="recent-commits"> + <div class="padding-wrapper scroll"> + <table id="recent-commits" class="wide"> <thead> <tr class="title-row"> <th colspan="3">Recent Commits (<a href="log/{{ .ref }}/">see all</a>)</th> @@ -33,8 +33,8 @@ </tbody> </table> </div> - <div class="padding-wrapper"> - <table id="file-tree"> + <div class="padding-wrapper scroll"> + <table id="file-tree" class="wide"> <thead> <tr class="title-row"> <th colspan="3">/ on {{ .ref }}</th> @@ -63,7 +63,7 @@ </div> <div class="padding-wrapper"> {{ if .readme }} - <table> + <table class="wide"> <thead> <tr class="title-row"> <th> 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 @@ <title>Log of {{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge</title> </head> <body class="repo-index"> - <table id="recent-commits"> + <table id="commits" class="wide"> <thead> <tr class="title-row"> <th colspan="4">Commits on {{ .ref }}</th> 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 @@ <title>{{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – Lindenii Forge</title> </head> <body class="repo-tree-dir"> - <div class="padding-wrapper"> - <table id="file-tree"> + <div class="padding-wrapper scroll"> + <table id="file-tree" class="wide"> <thead> <tr class="title-row"> <th colspan="3"> 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 @@ <title>{{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – Lindenii Forge</title> </head> <body class="repo-tree-dir"> - <div class="padding-wrapper"> - <table id="file-tree"> + <div class="padding-wrapper scroll"> + <table id="file-tree" class="wide"> <thead> <tr class="title-row"> <th colspan="3"> @@ -38,7 +38,7 @@ </div> <div class="padding-wrapper"> {{ if .readme }} - <table> + <table class="wide"> <thead> <tr class="title-row"> <th> |