Vuetify: [Bug Report] VTabs misaligned with fixed-tabs property

Created on 29 Jul 2019  路  6Comments  路  Source: vuetifyjs/vuetify

Environment

Vuetify Version: 2.0.2
Last working version: 2.0.0
Vue Version: 2.6.10
Browsers: Firefox 68.0
OS: Mac OS 10.14

Steps to reproduce

  1. Create an application with tabs inside of an app-bar.
  2. Set the tabs to use fixed-tabs.
  3. View the website on a mobile browser.

Expected Behavior

  • The tab item should fill its container.
  • The tabs should have equal padding on each horizontal side.
  • The first tab should be aligned with the app bar's left button.
  • The tab item itself should be sized to fit the tab text.
  • The slider should be aligned with the tab item.

Actual Behavior

  • The first tab has a large margin and is no longer aligned with the app bar's left button.
  • The slider is misaligned with the text.
  • The tab's text exceeds the bounds of the ripple effect.

Reproduction Link

https://codepen.io/dylancopeland/pen/dxvYwe

VTabs bug regression

All 6 comments

The Vuetify documentation seems to be affected by this, too:

@johnleider i fix this problem by add "show-arrows" attribute, awesome!

I ended up overriding the css

.v-tabs-bar.v-tabs-bar--is-mobile:not(.v-tabs-bar--show-arrows) > .v-slide-group__wrapper > .v-tabs-bar__content > .v-tab:first-of-type { margin-left: unset !important; }

@johnleider The work-around doesn't seem to work when you have tabs in a drawer. I think the reason is because the drawer's width is changing as it opens and closes.

This is resolved as of the latest version.

If you have any additional questions, please reach out to us in our Discord community.

Was this page helpful?
0 / 5 - 0 ratings