From daa7ccc0dd9ace6e973de1b9d631bf0c50e73073 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Wed, 5 Jul 2023 19:33:34 +0200 Subject: [PATCH 1/4] fix commits table --- templates/repo/commits_list.tmpl | 2 +- web_src/css/repo.css | 17 ++++------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index 6768bcb5137f0..0073ee1562175 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -1,5 +1,5 @@
- +
diff --git a/web_src/css/repo.css b/web_src/css/repo.css index ebb4d37ad19f0..b2a745d3f3638 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -1313,8 +1313,9 @@ padding: 5px 10px; } -.repository #commits-table thead th:first-of-type { - padding-left: 15px; +.repository #commits-table { + display: block; + white-space: nowrap; } .repository #commits-table thead .sha { @@ -1331,6 +1332,7 @@ .repository #commits-table td.message { text-overflow: unset; + white-space: normal; } .repository #commits-table.ui.basic.striped.table tbody tr:nth-child(2n) { @@ -3244,17 +3246,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; } From f91a39038a1674a81d5c3bdcbdffc2891c166948 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Wed, 5 Jul 2023 20:34:09 +0200 Subject: [PATCH 2/4] do not alter table display --- templates/repo/commits_list.tmpl | 2 +- web_src/css/repo.css | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index 0073ee1562175..6768bcb5137f0 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -1,5 +1,5 @@
-
{{.locale.Tr "repo.commits.author"}}
+
diff --git a/web_src/css/repo.css b/web_src/css/repo.css index b2a745d3f3638..ffd5bfe73b38d 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -1314,7 +1314,6 @@ } .repository #commits-table { - display: block; white-space: nowrap; } From 0185baa6c12e0371bc210360da7b2c91185d1094 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Wed, 5 Jul 2023 20:52:24 +0200 Subject: [PATCH 3/4] do not set white-space: nowrap for commit message --- web_src/css/repo.css | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web_src/css/repo.css b/web_src/css/repo.css index ffd5bfe73b38d..70c8974be5878 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -1313,10 +1313,9 @@ padding: 5px 10px; } -.repository #commits-table { +.repository #commits-table td:not(.message) { white-space: nowrap; } - .repository #commits-table thead .sha { width: 200px; } @@ -1331,7 +1330,6 @@ .repository #commits-table td.message { text-overflow: unset; - white-space: normal; } .repository #commits-table.ui.basic.striped.table tbody tr:nth-child(2n) { From 32461070f4b7f43fb7b161ce4333b015304ba150 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 6 Jul 2023 20:38:51 +0200 Subject: [PATCH 4/4] fix wrap of unbroken lines --- web_src/css/repo.css | 1 + 1 file changed, 1 insertion(+) diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 70c8974be5878..55d10098e9a1e 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -2683,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 */
{{.locale.Tr "repo.commits.author"}}