refined code
This commit is contained in:
parent
bc337027ca
commit
b2948e3071
|
@ -97,15 +97,17 @@
|
|||
}
|
||||
}
|
||||
|
||||
.avatar-round {
|
||||
border-radius: 50%;
|
||||
}
|
||||
.avatar {
|
||||
&.round {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.avatar.mini {
|
||||
margin-right: 5px;
|
||||
margin-top: -1px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
&.mini {
|
||||
margin-right: 5px;
|
||||
margin-top: -1px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.attribution {
|
||||
|
|
|
@ -32,11 +32,9 @@ proc renderHeader(tweet: Tweet; retweet: string; prefs: Prefs): VNode =
|
|||
if not prefs.autoplayGifs and tweet.profile.userPic.endsWith("gif"):
|
||||
size = "_400x400"
|
||||
|
||||
let avatarClass =
|
||||
if prefs.squareProfileImages: "avatar"
|
||||
else: "avatar avatar-round"
|
||||
let round = if prefs.squareProfileImages: "" else: " round"
|
||||
|
||||
genImg(tweet.profile.getUserPic(size), class=avatarClass)
|
||||
genImg(tweet.profile.getUserPic(size), class=(&"avatar{round}"))
|
||||
|
||||
tdiv(class="tweet-name-row"):
|
||||
tdiv(class="fullname-and-username"):
|
||||
|
|
Loading…
Reference in New Issue