Skip to content

Commit e538a06

Browse files
authored
small user list improvements (#27)
* - fix header height when not expanded - fix user list alignment * fix typo
1 parent c0431f8 commit e538a06

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

src/components/UserListElement.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@
1616
}
1717
}
1818

19+
.UserListElement_score {
20+
text-align: right;
21+
}
22+
1923

src/containers/Header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
transition: margin-top;
7676
transition-duration: 100ms;
7777
&.closed {
78-
margin-top: -3em;
78+
margin-top: calc(-3em - 4px);
7979
visibility: hidden;
8080
}
8181

src/containers/UserList.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ import './UserList.scss';
88
const UserList = (props) => {
99
const {user, userList, error} = props;
1010

11+
const {spotifySynchronized} = user;
12+
1113
useEffect(() => {
1214
props.dispatch(fetchUserList(user))
13-
}, []);
15+
}, [spotifySynchronized]);
1416

1517
return (
1618
<div className="UserList">

src/containers/UserList.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
}
1111

1212
.UserList__col {
13-
margin-right: 3em;
13+
margin-right: 4em;
14+
width: 250px;
1415
}

0 commit comments

Comments
 (0)