-
Notifications
You must be signed in to change notification settings - Fork 656
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
issues: sticky hdr covers selected line fixes #598 #690
Conversation
Hmm, can you uncover maybe 2 pixels more through reducing the padding on the stickied header? Note that I'm generally against stickying this header, but I see the issue is rather complicated. |
Not really, try it yourself it will get hairy really quick after this and it wont look nice when its not stuck. |
I was just giving this more thought, perhaps theres a better solution, but it will probably double the amount of code, Im wondering if you can make it look one way when not stuck and another when stuck by using these @support rules. I'll play around for the sake of interest in learning a new trick. |
Let's not add too many hacks, I'll see what can be done about compat with refined-github and if a user wants these sticky headers, they should install that extension. The issue with the out-of-view linked lines is also present with it, by the way. |
I dont think what I was thinking is going to work. try this
if you're happy with that Ill push it instead. edit... |
See #701 for my idea of not stickying at all in the style. |
As I commented there, the code in my comment above yours is the best compromise between stuck/unstuck I could find, and Im used to the idea and find that sort of useful. A third solution is to make my amended proposal entirely optional. as long as it works with #701 in same way. I know its a big can of worms. |
Let me know if you want the code as is or if you want the revised on the comment above. Im around for another 10 minutes before I go take a break ;) |
34px is too much, if you consider eagle eyes at stuck/unstuck mode with
looks like |
Ive pushed the tweak. |
|
thats the problem, your 36 height kills the centering on unstuck, Ive played with this for a long time now to find a good balance between stuck/unstuck and centering on both. |
Try this: .pull-request-tab-content .diff-view .file-header {
top: 40px !important;
}
.pull-request-tab-content .file-header {
height: 32px !important;
padding: 1px 10px;
} |
Nope, 40px leaves the 1px gap and around we go to reason why I opened #612 :/ |
well idk... Ill push that |
Well then make it |
pushed... RGH eat our shorts :) |
@silverwind you closed it, is that cause my commit count is getting to high? JK lol |
No, it's just GitHub being too dumb to detect CLI merges :) |
EH it also strips everyone's lovely signature on PR merge via rebase/squash :( CLI merge you need to pull my branch before, which is convoluted also. I never got that process when the PR already implies that its been pushed. |
I don't mess with branches usually, I just use apply-pr. |
Ah not buggy then :) 3yr old tool :) Youde be better served with Git aliases |
This uncovers just enough of the selected line to be a good candidate to fix #598
Im using this now locally and it works reliably enough to warrant this PR.
Re: non-default sticky header styles/scripts,
If there is a problem with those, it is beyond the scope of this issue and this fix, IMO and they need to be addressed separately and should not be a blocker for anything like this.
@maxrothman since you were the person to report the issue maybe this would be a good enough solution rather than none or having to do js workaround scripts.