Stop jumpy scrollbars!

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • Scrollbar-gutter is 👑
    ---------------------------------------
    🎨 VSCode Theming
    - Font: Cascadia Code: github.com/mic...
    - Theme: marketplace.vi...
    - Icons: marketplace.vi...
    ---------------------------------------
    🌐 Connect With Me 🌐
    - Website: codinginpublic...
    - Blog: chrispenningto...
    - Twitter: / cpenned
    - Patreon: / coding_in_public
    - Buy Me a Coffee: www.buymeacoff...

Комментарии • 18

  • @풍월상신
    @풍월상신 2 месяца назад

    Reserving empty scrollbar space looks not so great. Floating scrollbar is my bet.

  • @Sppring_BunBun
    @Sppring_BunBun 4 месяца назад

    #jumpystop

  • @shirleywang527
    @shirleywang527 4 месяца назад

    So useful! Thank you!

  • @BenRangel
    @BenRangel 5 месяцев назад

    Whoa! I kinda feel like some sites with an oldschool vibe will use this as a permanent feature - cause they just hate the ”new” way browsers hide scrollbars

  • @Goyo_MGC
    @Goyo_MGC 5 месяцев назад

    It's such a great trick ! However I believe this feature is not available on Safari ( Scrollbar are already handled on mac OS so it should be fine)

    • @CodinginPublic
      @CodinginPublic  4 месяца назад +1

      Yes, good call. That’s why I called this a progressive enhancement. Supporting browsers will get it. Others get the expected default behavior. So win-win!

  • @kastoridesbobur
    @kastoridesbobur 5 месяцев назад

    Or you can make it transparent but slightly visible?

    • @CodinginPublic
      @CodinginPublic  4 месяца назад

      You can make other adjustments to scroll bar using other properties like scrollbar-width

  • @simboy
    @simboy 5 месяцев назад

    I solved this bug for my company by writing a hook in every table that checks if there is a scroll and if it exists it sets the width plus scroll bar width, this was forcloumn headers wich didnt have the scrll bar so all the columns would be misalinged the moment the content of the table exceeded the screen size and the scroll bar popped up. I dont know how this will help though

  • @classicdrumpercussion1608
    @classicdrumpercussion1608 5 месяцев назад

    wow thanks for tip

  • @lukecartwright613
    @lukecartwright613 5 месяцев назад

    No way!!!

  • @ndasss9563
    @ndasss9563 5 месяцев назад

    Wth i did not even know this existed