Skip to content

Commit aa4fd1b

Browse files
authored
Prefer scroll in homepage header rather than uncontrolled wrap (#4728)
Do not show in changelog
1 parent e10dd57 commit aa4fd1b

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed

newIDE/app/src/UI/User/UserChip.js

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const styles = {
2828
width: 20,
2929
height: 20,
3030
},
31+
buttonContainer: { flexShrink: 0 },
3132
};
3233

3334
type Props = {|
@@ -60,27 +61,29 @@ const UserChip = ({ onOpenProfile }: Props) => {
6061
/>
6162
</DotBadge>
6263
) : (
63-
<LineStackLayout noMargin>
64-
<FlatButton
65-
label={
66-
<span>
67-
<Trans>Log in</Trans>
68-
</span>
69-
}
70-
onClick={onLogin}
71-
leftIcon={<Person fontSize="small" />}
72-
/>
73-
<RaisedButton
74-
label={
75-
<span>
76-
<Trans>Create account</Trans>
77-
</span>
78-
}
79-
onClick={onCreateAccount}
80-
primary
81-
icon={<Person fontSize="small" />}
82-
/>
83-
</LineStackLayout>
64+
<div style={styles.buttonContainer}>
65+
<LineStackLayout noMargin alignItems="center">
66+
<FlatButton
67+
label={
68+
<span>
69+
<Trans>Log in</Trans>
70+
</span>
71+
}
72+
onClick={onLogin}
73+
leftIcon={<Person fontSize="small" />}
74+
/>
75+
<RaisedButton
76+
label={
77+
<span>
78+
<Trans>Create account</Trans>
79+
</span>
80+
}
81+
onClick={onCreateAccount}
82+
primary
83+
icon={<Person fontSize="small" />}
84+
/>
85+
</LineStackLayout>
86+
</div>
8487
);
8588
};
8689

0 commit comments

Comments
 (0)