this post was submitted on 21 Jun 2023
30 points (100.0% liked)

Kbin Userstyles and Userscripts

15 readers
1 users here now

Custom CSS and JS to help improve your Kbin experience! ### Userscripts Greasy Fork ### Stylesheets UserStyles.world ### Userscript managers

founded 1 year ago
 

https://i.imgur.com/va0ph9d.png

Changelog

0.8

  • Made cache and pinned subs user-dependent for those with multiple accounts
  • Made subscription list scraping a little more robust
  • Added loading and error indicators

0.7

  • Added a button to manually refresh the cache
  • Made alphabetical sorting default

0.6

0.5

  • Pins! Hover over a magazine and click the pin icon to make it always appear in a special section at the top of the list.
  • Panel now scrolls with the view even if sticky navbar is off

0.4

  • Now uses cache for faster loading, refreshes every 5 minutes or when you sub/unsub from a magazine
  • Added button to collapse the subscription pane
  • Fixed bug where only the first page of subscriptions would be read

0.3

  • Added filter by name

0.2

  • Added buttons to sort by date (default) or alphabetically
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

If "sticky navbar" is turned off the subscriptions box disappears out of view if you scroll too far down. I noticed on version 0.3 if I changed -

   position: on line 85 from "absolute" to "fixed"
   top: on line 86 from "100%" to "9.5%"  (9.5% didn't overlap with header and was aligned nicely across the top)
   max-height: on line 89 from "100vh" to "90vh" - "95vh" (I use 93vh) then the sidebar stays fixed as you scroll.

then the sidebar stays fixed in place as you scroll, even with sticky-navbar turned off.

The only thing I don't like is that with the fixed sidebar it will overlap the footer at the bottom. I'm not sure how to make it not overlap, I literally just started googling this userscript stuff like 45 minutes ago. I'm guessing making the z-value of the footer a higher priority then the sidebar would make the sidebar scroll beneath the footer, but I don't know.

[โ€“] [email protected] 2 points 1 year ago

@Crayon8027
Pushed an update that fixes this - though I plan to add a settings menu soon that would let you choose to have it floating or scroll with the page, among other things.