Skip to content

Commit

Permalink
tidy mirror links
Browse files Browse the repository at this point in the history
  • Loading branch information
collinbarrett committed Sep 15, 2018
1 parent 4424f9d commit 7030d7a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const SubscribeButtonGroupDropdown = (props: ISubscribeButtonGroupDropdownProps)
mirrorIndex++;
}

return <div className="btn-group-vertical fl-btn-link" role="group">
return <div className="btn-group-vertical dropleft fl-btn-link" role="group">
<BtnGroupDropSubscribe/>
<div className="dropdown-menu" aria-labelledby="btnGroupDropSubscribe">
<SubscribeButton {...props} text={firstButtonText}/>
{props.urlMirrors.map(
(m, i) => <SubscribeButton {...props} url={m} text={`Mirror ${i + 1 + mirrorIndex}`}/>)}
(m, i) => <SubscribeButton {...props} url={m} text={`Mirror ${i + 1 + mirrorIndex}`} key={i}/>)}
</div>
</div>;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const ViewButtonGroupDropdown = (props: IViewButtonGroupDropdownProps) => {
mirrorIndex++;
}

return <div className="btn-group-vertical fl-btn-link" role="group">
return <div className="btn-group-vertical dropleft fl-btn-link" role="group">
<BtnGroupDropView/>
<div className="dropdown-menu" aria-labelledby="btnGroupDropView">
<ViewButton {...props} text={firstButtonText}/>
{props.urlMirrors.map(
(m, i) => <ViewButton {...props} url={m} text={`Mirror ${i + 1 + mirrorIndex}`}/>)}
(m, i) => <ViewButton {...props} url={m} text={`Mirror ${i + 1 + mirrorIndex}`} key={i}/>)}
</div>
</div>;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
.fl-btn-link {
margin-bottom: .2rem;
max-width: 90px;
width: 90px;
max-width: 100px;
width: 100px;
}

.dropdown-menu {
border: 0;
min-width: 0;
padding: 0;
}

0 comments on commit 7030d7a

Please sign in to comment.