css - Material-ui Tabs Left Alignment Issue -
material-ui's current version not support left-aligning tabs in component. saw workaround on https://github.com/callemall/material-ui/issues/4420
here's implementation of same https://www.webpackbin.com/bins/-kpxvgwkolpfm8cfcu5-
but when first tab selected tab bar distorted , has more height desired.
left align
an initial migration of tabs component has been merged on next branch. feature implemented , default behavior. providing details.
this supported feature in v1-beta
fix height issue
the tab bar distorted , has more height desired.
headline: {{ margintop: '0px' }}
see: comment
use padding
i want have container margin after tabs end.
the tabs structure weird me,
for reason can't use margin, try use padding instead:
contentcontainerstyle={{ paddingtop:'50px' }}
set width
don't set width in tabitemcontainerstyle
, use wrapper instead:
<div calssname='wrapper' style={{ width: '500px' }} /> <tabs {...}/> </div>
Comments
Post a Comment