From 1dc8c1a78e7e7e35cf1f5b3226b3dd07dd8c8090 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Feb 2025 19:33:01 +0800 Subject: repo_{index,tree_dir}.html, style.css: No inner margins on README td's --- static/style.css | 7 ++++++- templates/repo_index.html.tmpl | 4 ++-- templates/repo_tree_dir.html.tmpl | 4 ++-- 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 @@
{{ if .readme }} - +
- 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 @@
{{ if .readme }} -
@@ -73,7 +73,7 @@
+ {{ .readme -}}
+
- -- cgit v1.2.3
@@ -48,7 +48,7 @@
+ {{ .readme -}}