diff options
author | Denys Konovalov <kontakt@denyskon.de> | 2023-07-06 23:07:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-06 23:07:57 +0200 |
commit | 753755bd4e6168449e1068ea9a33ae942ff0cc87 (patch) | |
tree | 1ff5a35b7e45064264ab629d5885ff09a5ec39a4 /web_src/css/repo.css | |
parent | 2af30f715e64dbb0a3900168e3768ffb36c06392 (diff) | |
download | gitea-753755bd4e6168449e1068ea9a33ae942ff0cc87.tar.gz gitea-753755bd4e6168449e1068ea9a33ae942ff0cc87.zip |
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>
Diffstat (limited to 'web_src/css/repo.css')
-rw-r--r-- | web_src/css/repo.css | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/web_src/css/repo.css b/web_src/css/repo.css index ebb4d37ad1..55d10098e9 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -1313,10 +1313,9 @@ padding: 5px 10px; } -.repository #commits-table thead th:first-of-type { - padding-left: 15px; +.repository #commits-table td:not(.message) { + white-space: nowrap; } - .repository #commits-table thead .sha { width: 200px; } @@ -2684,6 +2683,7 @@ tbody.commit-list { /* in the commit list, messages can wrap so we can use inline */ .commit-list .message-wrapper { display: inline; + overflow-wrap: anywhere; } /* but in the repo-files-table we cannot */ @@ -3244,17 +3244,6 @@ tbody.commit-list { .commit-table th.sha { display: none !important; } - .commit-table .commit-list span.message-wrapper { - max-width: none; - } - .commit-table .commit-list tr td:first-child, - .commit-table .commit-list tr td:last-child { - white-space: nowrap; - } - .commit-table .commit-list td.author { - display: block; - width: calc(100% + 0.5rem); - } .commit-table .commit-list .copy-commit-sha { display: none !important; } |