sites icon indicating copy to clipboard operation
sites copied to clipboard

examples sidebar-improvement

Open vedam opened this issue 5 years ago • 4 comments

splitted this out from sveltejs/svelte#2641

I would like to discuss an addition to examples-sidebar which would IMO eliminate the need to scroll endlessly downwards which is the current state. This is maybe a bit more future-proof too, if more examples are coming. Not coded yet, just as a visual idea.

svelte-docs-proposal

vedam avatar May 01 '19 15:05 vedam

I also wanted this, like anchors to easily jump to sections but keeping the ability to scroll if we want.

On the phone I'd want them to be on the bottom of the screen, near the other 3 navigation buttons, easily accessible with the thumb.

mindrones avatar May 01 '19 19:05 mindrones

~~Thumbs up on that, definitely an improvement in clarity IMO.~~ (can't believe I actually comment my own issue here. May 19. Totally forgot that one, sorry) Maybe the active orange should be a tick lighter and the tags have to grow a bit on mobile (this can very easily look distracting), at least for my thumbs 😄

vedam avatar Dec 16 '21 05:12 vedam

Agree, if the side nav gets too big you'll have to scroll very long and not miss the category you are search for while doing it. With this it would mean you always know where to look, everything is in one place. This could be a nice addition to the docs section, too, if we start adding more doc pages.

dummdidumm avatar Dec 16 '21 09:12 dummdidumm

OK, it looks like the Pill approach is having trouble with too many subcategories. That's why I thought about it again and searched for a more practicable possibility: https://www.figma.com/file/d5OC7BNdcU32b0pArNLehe/svelte-sidebar-draft?node-id=0%3A1

vedam avatar Dec 17 '21 10:12 vedam