Merge pull request #2210 from iminoso/tabbing
Fix repo view tabbing styles and prevent auto scroll on tab click
This commit is contained in:
commit
a2cbcf837d
2 changed files with 10 additions and 7 deletions
|
@ -21,22 +21,21 @@
|
|||
|
||||
li.active a {
|
||||
color: #51a3d9;
|
||||
border: none;
|
||||
border-bottom: 1px solid #51a3d9;
|
||||
|
||||
&:hover {
|
||||
color: #51a3d9;
|
||||
border: none;
|
||||
border-bottom: 1px solid #51a3d9;
|
||||
}
|
||||
}
|
||||
|
||||
li a {
|
||||
color: #333;
|
||||
|
||||
border-bottom: 1px solid #DDD;
|
||||
&:focus,
|
||||
&:hover {
|
||||
border: none;
|
||||
border: 1px solid #fff;
|
||||
border-bottom: 1px solid #ddd;
|
||||
background-color: #fff;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,14 +14,18 @@ class body extends React.Component<IBody, {}> {
|
|||
}
|
||||
render () {
|
||||
let description: string = this.props.description;
|
||||
if (description === "") {
|
||||
if (description === null || description === "") {
|
||||
description = "No Description";
|
||||
}
|
||||
return(
|
||||
<div>
|
||||
<ul className="nav nav-tabs rp-tabs">
|
||||
<li className="active"><a href="#tab1" data-toggle="tab">Description</a></li>
|
||||
<li><a href="#tab2" data-toggle="tab">Automated Builds</a></li>
|
||||
<li className="active">
|
||||
<a data-target="#tab1" data-toggle="tab">Description</a>
|
||||
</li>
|
||||
<li>
|
||||
<a data-target="#tab2" data-toggle="tab">Automated Builds</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div className="panel-body rp-panelBody">
|
||||
<div className="tab-content">
|
||||
|
|
Reference in a new issue