Adjust avatar icon style

This commit is contained in:
Naoki Takezoe
2014-04-18 10:49:48 +09:00
parent c5de7811c4
commit 6760ff34ef
2 changed files with 8 additions and 2 deletions

View File

@@ -42,9 +42,9 @@ trait AvatarImageProvider { self: RequestCache =>
}
if(tooltip){
Html(s"""<img src="${src}" class="avatar" style="width: ${size}px; height: ${size}px;" data-toggle="tooltip" title="${userName}"/>""")
Html(s"""<img src="${src}" class="${if(size > 20){"avatar"} else {"avatar-mini"}}" style="width: ${size}px; height: ${size}px;" data-toggle="tooltip" title="${userName}"/>""")
} else {
Html(s"""<img src="${src}" class="avatar" style="width: ${size}px; height: ${size}px;" />""")
Html(s"""<img src="${src}" class="${if(size > 20){"avatar"} else {"avatar-mini"}}" style="width: ${size}px; height: ${size}px;" />""")
}
}