From 12b429c0d151178f1dcdb349dc297fdc9b773364 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 13 Mar 2024 05:45:45 +0800 Subject: [PATCH] Improve CSV rendering (#29638) (#29744) Backport #29638 by @silverwind Before: Screenshot 2024-03-06 at 21 42 17 After: Screenshot 2024-03-06 at 21 41 58 Co-authored-by: silverwind --- web_src/css/repo.css | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/web_src/css/repo.css b/web_src/css/repo.css index abc866ee5f..2510689a24 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -1432,6 +1432,7 @@ .repository .data-table tr { border-top: 0; + background: none !important; } .repository .data-table td, @@ -1444,6 +1445,21 @@ border: 1px solid var(--color-secondary); } +/* the border css competes with .markup where all tables have outer border which would add a double + border here, remove only the outer borders from this table */ +.repository .data-table tr:first-child :is(td,th) { + border-top: none !important; +} +.repository .data-table tr:last-child :is(td,th) { + border-bottom: none !important; +} +.repository .data-table tr :is(td,th):first-child { + border-left: none !important; +} +.repository .data-table tr :is(td,th):last-child { + border-right: none !important; +} + .repository .data-table td { white-space: pre-line; } @@ -1481,7 +1497,7 @@ min-width: 50px; font-family: monospace; line-height: 20px; - color: var(--color-secondary-dark-2); + color: var(--color-text-light-1); white-space: nowrap; vertical-align: top; cursor: pointer;