Closed Sir-Cumference closed 6 years ago
@shu8 Thought I'd mention, I just found out about the "sticky" property of CSS, which became supported by most browsers somewhat recently. This is 100x better than what we had for the sticky vote buttons, since it's way smoother and faster.
I've just added that to the code; it's not perfect yet, but it's already an improvement. I also found a few more bugs and added them here, so I'll try to get to them when I find the time.
@Sir-Cumference that's great! I remember somebody commented about that a while back but I completely forgot about it! thanks for adding it in :)
@Sir-Cumference sorry, the 'show x more comments' bug is my fault from the last change I made, I'll fix that ASAP!
Update: it should be fixed now.
Also, I think I've fixed "If you search for a feature and nothing shows up (e.g. due to a typo), you need to completely erase the word and retype it. In contrast, if features do show up, you only need to delete a few characters to fix the typo." by removing a block of code:
if ($features.find('.sox-feature:visible').length === 0 && $features.find('.sox-feature[style*="display: block"]').length === 0) {
$features.hide().prev().hide();
} else {
$features.show().prev().show();
}
I don't see why it should be needed so hopefully it won't cause bugs elsewhere!
@shu8 Should probably specify what my previous edits did. The main change was that they made the page calculate where to put the dialog boxes for the SOX and Meta buttons. This prevented the boxes from being disjoint on sites like Meta SE, where the topbar is wider than on most sites.
The notify on edit button may shift the Meta dialog a bit, and its own dialog box is disjoint. I figured since we were already getting rid of it the problem should be resolved though.
On another note, I slightly edited the way the buttons were placed on screen, so that they appear before the inbox when you are logged out.
Thanks, that's great! I'll be moving the notify on edit feature out to a separate userscript soon! And if we get rid of the fixed topbar the A51 bug should go too!
I think all of these are now fixed/no longer a problem! (I still need to make the separate notify on edit userscript!)
This is basically a TODO, which I'll try to patch when I get the time (unfortunately, I don't know how long that'll take).
$('.top-bar').height
or something)