Skip to content

Commit 121f635

Browse files
committed
Merge branch 'ui/responsive-accounts-page' into 'master'
Fixed responsive issue in My Account Page Closes #22 See merge request SUSE-UIUX/eos-user-story!135
2 parents df90b82 + 2b48973 commit 121f635

File tree

4 files changed

+35
-2
lines changed

4 files changed

+35
-2
lines changed

src/assets/scss/components/navigation.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,13 @@
1111
height: 25px;
1212
}
1313
}
14+
15+
@media only screen and (max-width: 768px) {
16+
.nav-header {
17+
flex-direction: column;
18+
}
19+
20+
.navbar-content {
21+
margin-top: 20px;
22+
}
23+
}

src/assets/scss/components/notifications.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@
66
.notifications-options {
77
padding: 4px 8px;
88
}
9+
10+
@media only screen and (max-width: 768px) {
11+
.notifications-dropdown {
12+
max-height: 512px;
13+
width: 195px;
14+
}
15+
}

src/assets/scss/components/userProfile.scss

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
}
5151

5252
&-details {
53+
align-items: center;
5354
display: flex;
5455
flex-direction: column;
55-
padding: 0 64px;
5656
width: auto;
5757
}
5858
}
@@ -89,6 +89,18 @@
8989
}
9090
}
9191
}
92+
93+
@media only screen and (max-width: 768px) {
94+
ul {
95+
flex-direction: column;
96+
97+
li {
98+
&:first-child {
99+
padding-left: $eos-m;
100+
}
101+
}
102+
}
103+
}
92104
}
93105

94106
.user-profile-settings {
@@ -100,6 +112,10 @@
100112

101113
li {
102114
padding: $eos-s 0;
115+
116+
&:first-child {
117+
padding-left: 0;
118+
}
103119
}
104120
}
105121
}

src/components/Navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const Navigation = (props) => {
4747
<Link className='link' to='/'>
4848
<img className='logo' src={eosIcon} alt='' />
4949
</Link>
50-
<nav>
50+
<nav className='navbar-content'>
5151
{state.auth && (
5252
<Link className='btn btn-default' to='/newStory'>
5353
+ New Story

0 commit comments

Comments
 (0)