novacbn / kahi-ui

Straight-forward Svelte UI for the Web
https://kahi-ui.nbn.dev
MIT License
187 stars 5 forks source link

Docs: Snippet Menu Improvement #136

Open dmgolembiowski opened 2 years ago

dmgolembiowski commented 2 years ago

Describe the Request

I was wondering if the snippet search's scrollbar could be tweaked to either incorporate any of the following ideas: the PgDn / PgUp keys be implemented to scroll ±10% of the vertical length, or (more conveniently) use a writable store to hold the latest scroll position which persists after each new snippet's import.

Please let me know if this is too time consuming, and I'll investigate a potential solution's PR.

Additional Context

The Playground's search snippet feature is a helpful study tool, and after spending an hour pouring over each card's associated snippet. This became cumbersome after my first hour in the playground. By the time I was halfway through the alphabet, I was cumulatively spending lots of time to reach my previous position.