Fix version picker so it doesn't overflow onto two lines
This commit is contained in:
@@ -24,7 +24,7 @@ export const SidebarHeader: React.StatelessComponent<SidebarHeaderProps> = ({
|
|||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<Container className="flex justify-bottom">
|
<Container className="flex justify-bottom">
|
||||||
<Container className="left pl1" width="150px">
|
<Container className="col col-7 pl1">
|
||||||
<Text
|
<Text
|
||||||
fontColor={colors.lightLinkBlue}
|
fontColor={colors.lightLinkBlue}
|
||||||
fontSize={screenWidth === ScreenWidths.Sm ? '20px' : '22px'}
|
fontSize={screenWidth === ScreenWidths.Sm ? '20px' : '22px'}
|
||||||
@@ -37,12 +37,14 @@ export const SidebarHeader: React.StatelessComponent<SidebarHeaderProps> = ({
|
|||||||
{!_.isUndefined(docsVersion) &&
|
{!_.isUndefined(docsVersion) &&
|
||||||
!_.isUndefined(availableDocVersions) &&
|
!_.isUndefined(availableDocVersions) &&
|
||||||
!_.isUndefined(onVersionSelected) && (
|
!_.isUndefined(onVersionSelected) && (
|
||||||
<div className="right" style={{ alignSelf: 'flex-end', paddingBottom: 4 }}>
|
<div className="col col-5 pl1" style={{ alignSelf: 'flex-end', paddingBottom: 4 }}>
|
||||||
|
<Container className="right">
|
||||||
<VersionDropDown
|
<VersionDropDown
|
||||||
selectedVersion={docsVersion}
|
selectedVersion={docsVersion}
|
||||||
versions={availableDocVersions}
|
versions={availableDocVersions}
|
||||||
onVersionSelected={onVersionSelected}
|
onVersionSelected={onVersionSelected}
|
||||||
/>
|
/>
|
||||||
|
</Container>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</Container>
|
</Container>
|
||||||
|
Reference in New Issue
Block a user