mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 03:26:30 +00:00
refined code
This commit is contained in:
parent
bc337027ca
commit
b2948e3071
2 changed files with 13 additions and 13 deletions
|
@ -97,15 +97,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar-round {
|
.avatar {
|
||||||
border-radius: 50%;
|
&.round {
|
||||||
}
|
border-radius: 50%;
|
||||||
|
}
|
||||||
.avatar.mini {
|
|
||||||
margin-right: 5px;
|
&.mini {
|
||||||
margin-top: -1px;
|
margin-right: 5px;
|
||||||
width: 20px;
|
margin-top: -1px;
|
||||||
height: 20px;
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.attribution {
|
.attribution {
|
||||||
|
|
|
@ -32,11 +32,9 @@ proc renderHeader(tweet: Tweet; retweet: string; prefs: Prefs): VNode =
|
||||||
if not prefs.autoplayGifs and tweet.profile.userPic.endsWith("gif"):
|
if not prefs.autoplayGifs and tweet.profile.userPic.endsWith("gif"):
|
||||||
size = "_400x400"
|
size = "_400x400"
|
||||||
|
|
||||||
let avatarClass =
|
let round = if prefs.squareProfileImages: "" else: " round"
|
||||||
if prefs.squareProfileImages: "avatar"
|
|
||||||
else: "avatar avatar-round"
|
|
||||||
|
|
||||||
genImg(tweet.profile.getUserPic(size), class=avatarClass)
|
genImg(tweet.profile.getUserPic(size), class=(&"avatar{round}"))
|
||||||
|
|
||||||
tdiv(class="tweet-name-row"):
|
tdiv(class="tweet-name-row"):
|
||||||
tdiv(class="fullname-and-username"):
|
tdiv(class="fullname-and-username"):
|
||||||
|
|
Loading…
Reference in a new issue