Skip to content

Commit 94eb84e

Browse files
fix(globalHeader): make header work better with small screens (#5900)
1 parent 64927ba commit 94eb84e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/identity/components/GlobalHeader/GlobalHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import IdentityUserAvatar from 'src/identity/components/GlobalHeader/IdentityUse
3434
import RateLimitAlert from 'src/cloud/components/RateLimitAlert'
3535

3636
const caretStyle = {fontSize: '18px', color: InfluxColors.Grey65}
37-
const rightHandContainerStyle = {width: '700px', marginLeft: 'auto'}
37+
const rightHandContainerStyle = {marginLeft: 'auto'}
3838

3939
export const GlobalHeader: FC = () => {
4040
const dispatch = useDispatch()

src/shared/components/cloud/CloudOnly.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,20 @@ button.upgrade-payg--button {
9999
margin: $cf-marg-c;
100100
}
101101

102-
@media (max-width: 668px) {
102+
@media (max-width: 850px) {
103103
.credit-250-experiment-upgrade-button--text {
104104
display: none;
105105
}
106106
}
107107

108+
@media (max-width: 700px) {
109+
.upgrade-payg--button {
110+
.CrownSolid_New {
111+
display: none;
112+
}
113+
}
114+
}
115+
108116
@media screen and (min-width: $cf-nav-menu--breakpoint) {
109117
.rate-alert {
110118
margin-left: $cf-space-l;

0 commit comments

Comments
 (0)