Skip to content

Commit

Permalink
Change size of user's avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
grrinchas committed Nov 24, 2017
1 parent 824265c commit b5c6610
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/example/elm/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mobile users =
userItem: User -> Html msg
userItem user =
li [class "collection-item avatar"]
[ img [class "dg-avatar circle", src user.avatar] []
[ img [class "circle", src user.avatar] []
, span [class "title"] [text user.login]
]

Expand All @@ -52,8 +52,8 @@ tablet users =

userCard : User -> Html msg
userCard user =
div [class "col s6 m4 l3"]
[div [class "card small"]
div [class "col s6 m4 l2"]
[div [class "card dg-card"]
[ div [class "card-image"]
[img [src user.avatar, class "dg-avatar"] [] ]
, div [class "card-content"]
Expand Down
10 changes: 8 additions & 2 deletions src/example/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ body {
}

.dg-avatar {
height: 200px;
width: 200px;
width: 100px;
height: 150px;
}







0 comments on commit b5c6610

Please sign in to comment.