Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Fix Cut-Off Header Names in Subtabs #1117
Browse files Browse the repository at this point in the history
  • Loading branch information
wiadev committed Aug 8, 2017
1 parent 3cd76f1 commit cbb2da4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/assets/css/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.nav-tabs .nav-item.nav-item {
margin-right: .5rem;
margin-left: 0;
position: relative;
}

.nav-tabs .nav-link.active {
Expand Down
4 changes: 3 additions & 1 deletion src/components/tabs/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class Tabs extends Component {
const {tabIndex} = this.props;
const maxWidth = (95 / pills.length) + '%';
const {selected} = this.state;

return pills.map((item) => {

return (
<li
className="nav-item"
Expand All @@ -51,6 +51,8 @@ class Tabs extends Component {
tabIndex={tabIndex}
onKeyDown={(e) => this.handlePillKeyDown(e, item.key)}
style={{ maxWidth }}
title={item.props.caption}

>
<a
className={
Expand Down

0 comments on commit cbb2da4

Please sign in to comment.