aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less/_repository.less
diff options
context:
space:
mode:
authorHester Gong <hestergong@gmail.com>2023-03-06 23:44:04 +0800
committerGitHub <noreply@github.com>2023-03-06 09:44:04 -0600
commit471b6d24b49ca749a93dcb1f292774aaa8935369 (patch)
tree909130d076806d688715213c27d5c48f183ae801 /web_src/less/_repository.less
parentf0b0f22aeda60c77e377f8869f262217c1895ab8 (diff)
downloadgitea-471b6d24b49ca749a93dcb1f292774aaa8935369.tar.gz
gitea-471b6d24b49ca749a93dcb1f292774aaa8935369.zip
Fix PR view misalignment caused by long name file (#23321)
Close #23248 The UI after this PR: https://user-images.githubusercontent.com/17645053/223009758-7f0c9f12-d346-4cb2-a605-729fddce732f.mov
Diffstat (limited to 'web_src/less/_repository.less')
-rw-r--r--web_src/less/_repository.less19
1 files changed, 17 insertions, 2 deletions
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index 9eaa8644f1..3b93a76a16 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -1670,8 +1670,14 @@
align-items: center;
.file {
- flex: 1;
- word-break: break-all;
+ min-width: 0;
+ .file-link {
+ max-width: fit-content;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ overflow: hidden;
+ }
}
.button {
@@ -3283,6 +3289,15 @@ td.blob-excerpt {
position: static;
}
}
+
+ .diff-file-header-actions {
+ flex-shrink: 0;
+ }
+
+ .diff-file-name {
+ flex: auto;
+ min-width: 100px;
+ }
}
.diff-file-body {