Skip to content

Commit 753755b

Browse files
denyskonsilverwind
andauthored
Fix commits table regression (#25710)
Fixes #25693 The commits table appearance fix in #25634 was incomplete and caused a regression. This PR fixes that issue and removes some unneeded CSS classes because of the proper fix. <details> <summary>Before</summary> ![Bildschirmfoto vom 2023-07-05 19-37-04](https://github.com/go-gitea/gitea/assets/47871822/4f680878-9612-443b-a0a3-b331369c912b) ![Bildschirmfoto vom 2023-07-05 19-38-56](https://github.com/go-gitea/gitea/assets/47871822/8826f246-6bde-4c33-9d10-172d11619908) </details> <details> <summary>After</summary> ![Bildschirmfoto vom 2023-07-05 19-37-44](https://github.com/go-gitea/gitea/assets/47871822/0fe2d2cb-f706-41e0-b341-d1827a64b21a) ![Bildschirmfoto vom 2023-07-05 19-38-08](https://github.com/go-gitea/gitea/assets/47871822/2f29271c-7da5-44d7-bd9a-38a4bfdde219) </details> --------- Co-authored-by: silverwind <me@silverwind.io>
1 parent 2af30f7 commit 753755b

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

web_src/css/repo.css

+3-14
Original file line numberDiff line numberDiff line change
@@ -1313,10 +1313,9 @@
13131313
padding: 5px 10px;
13141314
}
13151315

1316-
.repository #commits-table thead th:first-of-type {
1317-
padding-left: 15px;
1316+
.repository #commits-table td:not(.message) {
1317+
white-space: nowrap;
13181318
}
1319-
13201319
.repository #commits-table thead .sha {
13211320
width: 200px;
13221321
}
@@ -2684,6 +2683,7 @@ tbody.commit-list {
26842683
/* in the commit list, messages can wrap so we can use inline */
26852684
.commit-list .message-wrapper {
26862685
display: inline;
2686+
overflow-wrap: anywhere;
26872687
}
26882688

26892689
/* but in the repo-files-table we cannot */
@@ -3244,17 +3244,6 @@ tbody.commit-list {
32443244
.commit-table th.sha {
32453245
display: none !important;
32463246
}
3247-
.commit-table .commit-list span.message-wrapper {
3248-
max-width: none;
3249-
}
3250-
.commit-table .commit-list tr td:first-child,
3251-
.commit-table .commit-list tr td:last-child {
3252-
white-space: nowrap;
3253-
}
3254-
.commit-table .commit-list td.author {
3255-
display: block;
3256-
width: calc(100% + 0.5rem);
3257-
}
32583247
.commit-table .commit-list .copy-commit-sha {
32593248
display: none !important;
32603249
}

0 commit comments

Comments
 (0)