Giter VIP home page Giter VIP logo

Comments (1)

bkeepers avatar bkeepers commented on September 22, 2024 1
  • The width of each "page" should adapt to the content.

It's supposed to, but I can't get it to work right. Maybe someone with fresh eyes can make it work.

It currently uses CSS columns with column-count: auto and column-width explicitly set to the calculated width of the content. Here's the code.

The advantage of this approach is that the browser respects any break-inside or break-after properties. However, browsers really don't like the content overflowing horizontally. They don't seem to respect the explicit column-width and instead try to expand the columns to fill the viewport. So if a column is less than 50% of the container width, it will make the columns roughly 50%. If they are more, then it will just make them 100%.

Would be nice to have a shortcut to switch from one "page" to another like Arrow Left or Arrow Right, Page Up, Page Down => could be compatible with bluetooth pedal!

Yes, keyboard shortcuts would be great.

There is also some strange behaviors happening while scrolling.

This is scroll-snap. When you scroll vertically, it ensures that a full paragraph of the song is scrolled into view instead of half of it being off the screen. If the width of the columns was right, I think it would work just as well for horizontal, but with the columns being expanded to fill the viewport, it feels very awkward.

from chordbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.