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
This commit is contained in:
Hester Gong 2023-03-06 23:44:04 +08:00 committed by GitHub
parent f0b0f22aed
commit 471b6d24b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 4 deletions

View file

@ -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 {