Skip to content

Commit c88a59b

Browse files
zeripathlunny
andauthored
Adjust max-widths for the repository file table (#20243) (#20247)
Backport #20243 Adjust the max-widths for the repository file table to allow for nicer resizing of the names and commit messages. Fix #20040 Signed-off-by: Andrew Thornton <art27@cantab.net> ## Screenshots ## MediaXL ![Screenshot from 2022-07-05 10-22-12](https://user-images.githubusercontent.com/1824502/177295867-7ba8cf60-8f61-4227-892f-e5a0477e4146.png) ## MediaLg ![Screenshot from 2022-07-05 10-24-37](https://user-images.githubusercontent.com/1824502/177296301-e066e206-10f7-4a15-a68b-0f772a95f369.png) ## MediaMd ![Screenshot from 2022-07-05 10-23-03](https://user-images.githubusercontent.com/1824502/177295965-69397649-16ca-456a-bc0c-ed507fcb7f44.png) ## MediaSm ![Screenshot from 2022-07-05 10-26-44](https://user-images.githubusercontent.com/1824502/177296700-ca2a853b-c47b-4592-baf4-4bc08a7e1c9c.png) Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent 01a4fb0 commit c88a59b

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

web_src/less/_repository.less

+22-2
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,31 @@
352352
overflow: initial;
353353

354354
&.name {
355-
max-width: 150px;
355+
@media @mediaXl {
356+
max-width: 150px;
357+
}
358+
@media @mediaLg {
359+
max-width: 200px;
360+
}
361+
@media @mediaMd {
362+
max-width: 300px;
363+
}
364+
width: 33%;
365+
366+
max-width: calc(100vw - 140px);
356367
}
357368

358369
&.message {
359-
max-width: 400px;
370+
@media @mediaXl {
371+
max-width: 400px;
372+
}
373+
@media @mediaLg {
374+
max-width: 350px;
375+
}
376+
@media @mediaMd {
377+
max-width: 250px;
378+
}
379+
width: 66%;
360380
}
361381

362382
&.age {

0 commit comments

Comments
 (0)