soscripted / sox

Stack Overflow Extras: a userscript for the Stack Exchange websites to add a bunch of optional toggle-able features
http://stackapps.com/q/6091/
MIT License
72 stars 15 forks source link

Several known bugs #308

Closed Sir-Cumference closed 6 years ago

Sir-Cumference commented 6 years ago

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).

Sir-Cumference commented 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.

shu8 commented 6 years ago

@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 :)

shu8 commented 6 years ago

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

Sir-Cumference commented 6 years ago

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

shu8 commented 6 years ago

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!

shu8 commented 6 years ago

I think all of these are now fixed/no longer a problem! (I still need to make the separate notify on edit userscript!)