bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Scrollable tabs on overflow

Open jumpinjackie opened this issue 13 years ago • 8 comments

When a large set of tabs that displays fine on desktop/tablet resolution gets compressed down to a smartphone resolution, they flow over onto the space below producing an ugly set of stacked tabs.

What would be really nice is on such constrained displays, that the tab list becomes horizontally scrollable or vertically scrollable if the tab list is vertically oriented

Some screenshots to better explain

What currently happens

current-tabs

What we'd like to happen

desired-tabs

jumpinjackie avatar Feb 01 '13 03:02 jumpinjackie

We won't be adding that at this time. I'd consider a different approach than tabs for narrow views.

mdo avatar Feb 01 '13 06:02 mdo

What if you just have an optional class to make the tab bar fixed height and overflow:auto so that the tabs don't wrap. Then slap something like this in there: http://lea.verou.me/2012/04/background-attachment-local/ so that people can see that it's in fact possible to scroll through the tabs (or drag through them on touch devices). The arrows to scroll would of course be an additional feature.

I realize the flaw with this would be that it breaks dropdowns... still got no solution for that.

ProLoser avatar Feb 01 '13 09:02 ProLoser

@jumpinjackie did you manage to solve this issue? i need the same thing for my project.

aolee avatar Nov 26 '13 07:11 aolee

Is there any solution for this scrollable tabs?

swapna5 avatar Mar 19 '14 06:03 swapna5

@aolee Our workaround in our app was to use a TinyNav (http://tinynav.viljamis.com/) in place of the tabs when the screen gets small enough.

Still it's a hack.

Still I am disappointed that such an idea that would have merit when we're trying for a one-size-fits-all responsive design would be shot down like this.

Other options you may consider:

  • Bootstrap responsive tabs: http://openam.github.io/bootstrap-responsive-tabs/
  • Bootstrap tabdrop plugin: http://www.eyecon.ro/bootstrap-tabdrop/

jumpinjackie avatar Mar 21 '14 13:03 jumpinjackie

For those looking this way, Polymer has support for this out of the box (thankfully).

seiyria avatar Nov 25 '14 16:11 seiyria

Maybe this can help: http://www.bootply.com/l2ChB4vYmC

marcelkohl avatar Aug 15 '15 13:08 marcelkohl

Hi @marcelkohl!

You appear to have posted a live example (http://s.bootply.com/render/l2ChB4vYmC), which is always a good first step. However, according to Bootlint, your example has some Bootstrap usage errors, which might potentially be causing your issue:

  • line 10, column 9: W013: Bootstrap version might be outdated. Latest version is at least 3.3.5 ; saw what appears to be usage of Bootstrap 3.1.1
  • line 118, column 9: W013: Bootstrap version might be outdated. Latest version is at least 3.3.5 ; saw what appears to be usage of Bootstrap 3.1.1

You'll need to fix these errors and post a revised example before we can proceed further. Thanks!

(Please note that this is a fully automated comment.)

twbs-lmvtfy avatar Aug 15 '15 13:08 twbs-lmvtfy