From 1dc8c1a78e7e7e35cf1f5b3226b3dd07dd8c8090 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Feb 2025 19:33:01 +0800 Subject: [PATCH] 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 ++-- diff --git a/static/style.css b/static/style.css index f8b21c7afaae0948d5976ef56e955087b881a741..536560db6fc0d152969bd51df6d07f359062d0a2 100644 --- a/static/style.css +++ b/static/style.css @@ -82,7 +82,12 @@ } 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 4fd4f08f682bc22447f29b65884592382bb08e19..216e5f4c4139d71551e8d375b38612fa9cfeb99a 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 ed8471f181b3d3a33fe0a9d9f939d061d4610b7c..99b6236e60aa6fb58c30b4a06d27005020267bc7 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 -}}
+
- -- 2.48.1
@@ -48,7 +48,7 @@
+ {{ .readme -}}