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

Fix Cut-Off Header Names in Subtabs #1117 #1122

Merged
merged 1 commit into from
Aug 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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