From 3b18a7d8c9608ed0bf13d546018f44e703c62e11 Mon Sep 17 00:00:00 2001 From: Saya Andy Date: Mon, 7 Sep 2026 20:26:15 +0700 Subject: diff: add a flip link to the refs panel The from and to refs of a diff can only be swapped by editing the url by hand. Add a flip link to the refs panel that opens the same diff with the refs swapped, carrying the current head and options. --- cgit.css | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cgit.css') diff --git a/cgit.css b/cgit.css index 7892eca..8563462 100644 --- a/cgit.css +++ b/cgit.css @@ -674,6 +674,11 @@ div#cgit a.button { padding: 0em 0.5em; } +div#cgit form.diff-ctrls div.cgit-panel a.button { + border: solid 1px var(--border-mid); + background-color: var(--bg-hl); +} + div#cgit a.primary { font-size: 100%; } -- cgit v1.3.1+15