-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filename overflows file header in PRs #724
Comments
Hi @auscompgeek! I can't duplicate this problem. I see the The commit that was shared deals with the "Files changed" tab and shouldn't cause the issue seen in the screen shot. |
Hm. Turns out this only becomes a problem if you zoom in. (I always have GitHub zoomed at 110% because the code font size is oddly small to me otherwise.) It's definitely caused by the CSS introduced in that commit though; the CSS selector |
LOL, I'm always zoomed in to 110% as well. I'm still not seeing the problem. What happens if you disable the |
No dice. If it helps, it seems my file headers are using the Droid Sans Mono Slashed font, and the sans-serif font is Noto Sans. |
You are poking at the right place its the
See this. So you see when you disable GitHub Dark the A possible solution is adding .pull-request-tab-content .file-header:not(summary) {
height: 32px !important;
padding: 1px 10px !important;
} Excluding the summary does the trick here, but it may be too broad. I need to do more testing to find something more targeted.. |
IDK, so far both And neither of those affect the functionality of 9b5fa7e or the area that it proposes to fix here edit: however the same problem exists when looking at https://github.com/wpilibsuite/allwpilib/pull/1022/files#diff-b0bc4c1c897b5abdb841f75a8f7896f7R3 The height block screws with that also in the same way this issue is affected. So how to fix both and keep 9b5fa7e is the question. Back to the drawing board. |
OK got it, fix incoming. |
Heh, I was wondering whether the height rule there was necessary. |
Its more complicated that that see #598 which is why that was developed. But because the heigh can increase in file-header to accommodate extra long lines the issue with those re-happens again in these portions. |
@auscompgeek see #598 (comment) it explain the issue further. |
Maybe we should add the ".diff-view" in the middle of those selectors: .pull-request-tab-content .diff-view .file-header {
height: 32px !important;
padding: 1px 10px !important;
} That way it only targets the files changed tab. |
@Mottie no, because those headers also have double height. which was restricted by that and thus this issue also affected the diff view file header which no longer is the case. read the comment above yours ;) |
GitHub truncates the path/filename so that it doesn't expand into two rows. Try the CSS I shared, it won't effect the file names in the conversation tab. |
Again no this issue affects two portions what @auscompgeek pointed out and the fileheaders in diff view. If you dont want to, just look at this with the above code. |
Ok, I still can't reproduce, so I'll leave it to you. |
I can't repro this either. Out of curiosity what font size are you seeing used on that text? Mine's |
This maybe a Firefox thing I realize neither of you use Firefox but the full width of elements is cut off here and these headers overflow like showed above. |
Only testing stable release here at this time |
I did test this issue in Firefox. I'm not seeing the overflow of the file into the second line. This is why we shouldn't be adding padding or other non-color styling unless it is absolutely necessary. |
It is necessary :( |
Maybe that line needs a |
It wont work whitespace pre. Ive played with this to ad nauseaum to fix #598 and whatever tweaks are there are necessary to make it work here Are you even looking at the gifs Im posting? anyway, Do whatever, Ill just open bug reports or fix it localy |
Actually, I was thinking about this: .pull-request-tab-content .file-header {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
} |
In your settings do you have a minimum font size set? Because If i set that to If I disable the |
I do, but does that explain the differences between default and GHD? Edit: I actually disabled that, and result is I cant read the text on my screen without shoving my head with my nose two inches away from screen 27" screen at 2560x1440p So not an option. |
It explains why the text is overflowing and why we couldn't see it. Now @Mottie can adjust his settings and see it too which is better than a screen shot. |
Sucks to be half blind in a modern world of UHD |
I did adjust the font size... that's how I came up with #724 (comment)... I'm done for tonight. You guys hash it out. |
Im also done tonight and with this Ive had an extremely long day and cantdiscuss the reasons why 9b5fa7e has to be as it is since it was already itself a long discussion in #598 and #612 and since its inception in #690 and after the fact in 5743cd7 why the reason of each value existence discussing it further is just going nowhere. This issue is fixed and so is 50% for me of #598 which is a minor miracle considering I would like to see the text on my screen. That said, if anyone has a better proposal that fixes everything and is a decent compromise, feel free to leave the code and Ill test it.
That overlaps at the right edge here so Im definitely lost in translation ;) |
Instead of setting a minimum font size which ought to break layouts, I can recommend a extension like this where you can set a default zoom level. I usually use 200% on screens above 1080p. |
I dont like distorting things too big font is not good either with zoom levels so everything is 100% at 100% DPI, I could have also opted to use higher DPI but that is more distortion OS Side too, neither look as natural as my current setup which has taken a long time to mature in most text based sites. This is my best result sadly. Things break equally in some sites with zoom levels or DPI, this works best across all I need. I could lower my resolution, but that defeats purpose for having a larger screen where I can dump VM + browser + some other bits which is why I bought a bigger higher resolution screen and why I keep it at 2560x1440p and not the full 4K native resolution 3840x2160p because then I would really need 200% everything and everything is out of wack. I dont play games so no good to me.
|
Looks like this was caused by 9b5fa7e.
The text was updated successfully, but these errors were encountered: