Fixes: Minor layout issue in settings sidebar header
This commit is contained in:
@ -29,7 +29,7 @@ class SettingsSidebar extends React.Component<Props> {
|
||||
return (
|
||||
<Sidebar>
|
||||
<HeaderBlock
|
||||
subheading="◄ Return to Dashboard"
|
||||
subheading="◄ Return to App"
|
||||
teamName={team.name}
|
||||
logoUrl={team.avatarUrl}
|
||||
onClick={this.returnToDashboard}
|
||||
|
@ -35,9 +35,9 @@ function HeaderBlock({
|
||||
}
|
||||
|
||||
const StyledExpandedIcon = styled(ExpandedIcon)`
|
||||
position: relative;
|
||||
top: 6px;
|
||||
left: -4px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
`;
|
||||
|
||||
const Subheading = styled.div`
|
||||
@ -49,8 +49,9 @@ const Subheading = styled.div`
|
||||
`;
|
||||
|
||||
const TeamName = styled.div`
|
||||
position: relative;
|
||||
padding-left: 10px;
|
||||
margin-top: ${props => (props.showDisclosure ? '-8px' : '0')};
|
||||
padding-right: 24px;
|
||||
font-weight: 600;
|
||||
color: ${color.text};
|
||||
text-decoration: none;
|
||||
|
@ -59,7 +59,6 @@ type Props = {
|
||||
active?: boolean,
|
||||
};
|
||||
|
||||
@withRouter
|
||||
@observer
|
||||
class SidebarLink extends React.Component<Props> {
|
||||
@observable expanded: boolean = false;
|
||||
@ -158,4 +157,4 @@ const Content = styled.div`
|
||||
width: 100%;
|
||||
`;
|
||||
|
||||
export default SidebarLink;
|
||||
export default withRouter(SidebarLink);
|
||||
|
Reference in New Issue
Block a user