Skip to content

Commit f23eaf5

Browse files
silverwindGiteaBot
authored andcommitted
Improve CSV rendering (go-gitea#29638)
Before: <img width="1332" alt="Screenshot 2024-03-06 at 21 42 17" src="https://github.com/go-gitea/gitea/assets/115237/0ea07eee-31f8-4783-bd56-37bd8396f00d"> After: <img width="1336" alt="Screenshot 2024-03-06 at 21 41 58" src="https://github.com/go-gitea/gitea/assets/115237/eb7f9cc9-587f-4e3b-92bd-cc67ca639963">
1 parent 8c31456 commit f23eaf5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

web_src/css/repo.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,7 @@
14321432

14331433
.repository .data-table tr {
14341434
border-top: 0;
1435+
background: none !important;
14351436
}
14361437

14371438
.repository .data-table td,
@@ -1444,6 +1445,21 @@
14441445
border: 1px solid var(--color-secondary);
14451446
}
14461447

1448+
/* the border css competes with .markup where all tables have outer border which would add a double
1449+
border here, remove only the outer borders from this table */
1450+
.repository .data-table tr:first-child :is(td,th) {
1451+
border-top: none !important;
1452+
}
1453+
.repository .data-table tr:last-child :is(td,th) {
1454+
border-bottom: none !important;
1455+
}
1456+
.repository .data-table tr :is(td,th):first-child {
1457+
border-left: none !important;
1458+
}
1459+
.repository .data-table tr :is(td,th):last-child {
1460+
border-right: none !important;
1461+
}
1462+
14471463
.repository .data-table td {
14481464
white-space: pre-line;
14491465
}
@@ -1481,7 +1497,7 @@
14811497
min-width: 50px;
14821498
font-family: monospace;
14831499
line-height: 20px;
1484-
color: var(--color-secondary-dark-2);
1500+
color: var(--color-text-light-1);
14851501
white-space: nowrap;
14861502
vertical-align: top;
14871503
cursor: pointer;

0 commit comments

Comments
 (0)