mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
38355523e8
commit
1f9f9022b9
3 changed files with 12 additions and 6 deletions
|
|
@ -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>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
Loading…
Reference in a new issue