aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-11 19:33:01 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-11 19:33:01 +0800
commit1dc8c1a78e7e7e35cf1f5b3226b3dd07dd8c8090 (patch)
tree28ecfbbde98e4f9d3ea6ba912e65848955af39c3
parentrepo_commit: Add commit message (diff)
downloadforge-1dc8c1a78e7e7e35cf1f5b3226b3dd07dd8c8090.tar.gz
forge-1dc8c1a78e7e7e35cf1f5b3226b3dd07dd8c8090.tar.zst
forge-1dc8c1a78e7e7e35cf1f5b3226b3dd07dd8c8090.zip
repo_{index,tree_dir}.html, style.css: No inner margins on README td's
Diffstat (limited to '')
-rw-r--r--static/style.css7
-rw-r--r--templates/repo_index.html.tmpl4
-rw-r--r--templates/repo_tree_dir.html.tmpl4
3 files changed, 10 insertions, 5 deletions
diff --git a/static/style.css b/static/style.css
index f8b21c7..536560d 100644
--- a/static/style.css
+++ b/static/style.css
@@ -82,7 +82,12 @@ tr.title-row > th {
td > pre {
margin: 0;
}
-
+td#readme > *:last-child {
+ margin-bottom: 0;
+}
+td#readme > *:first-child {
+ margin-top: 0;
+}
.commit-id {
font-family: monospace;
}
diff --git a/templates/repo_index.html.tmpl b/templates/repo_index.html.tmpl
index 4fd4f08..216e5f4 100644
--- a/templates/repo_index.html.tmpl
+++ b/templates/repo_index.html.tmpl
@@ -63,7 +63,7 @@
</div>
<div class="padding-wrapper">
{{ if .readme }}
- <table id="readme">
+ <table>
<thead>
<tr class="title-row">
<th>
@@ -73,7 +73,7 @@
</thead>
<tbody>
<tr>
- <td>
+ <td id="readme">
{{ .readme -}}
</td>
</tr>
diff --git a/templates/repo_tree_dir.html.tmpl b/templates/repo_tree_dir.html.tmpl
index ed8471f..99b6236 100644
--- a/templates/repo_tree_dir.html.tmpl
+++ b/templates/repo_tree_dir.html.tmpl
@@ -38,7 +38,7 @@
</div>
<div class="padding-wrapper">
{{ if .readme }}
- <table id="readme">
+ <table>
<thead>
<tr class="title-row">
<th>
@@ -48,7 +48,7 @@
</thead>
<tbody>
<tr>
- <td>
+ <td id="readme">
{{ .readme -}}
</td>
</tr>