mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 03:45:36 +00:00
Merge pull request #513 from LainLayer/square_avatars
Implemented square profile pictures preference
This commit is contained in:
commit
cc0e4b1668
|
@ -75,6 +75,9 @@ genPrefs:
|
||||||
hideReplies(checkbox, false):
|
hideReplies(checkbox, false):
|
||||||
"Hide tweet replies"
|
"Hide tweet replies"
|
||||||
|
|
||||||
|
squareAvatars(checkbox, false):
|
||||||
|
"Square profile pictures"
|
||||||
|
|
||||||
Media:
|
Media:
|
||||||
mp4Playback(checkbox, true):
|
mp4Playback(checkbox, true):
|
||||||
"Enable mp4 video playback (only for gifs)"
|
"Enable mp4 video playback (only for gifs)"
|
||||||
|
|
|
@ -98,15 +98,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
|
&.round {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar.mini {
|
&.mini {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
margin-top: -1px;
|
margin-top: -1px;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.attribution {
|
.attribution {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -31,7 +31,9 @@ proc renderHeader(tweet: Tweet; retweet: string; prefs: Prefs): VNode =
|
||||||
var size = "_bigger"
|
var size = "_bigger"
|
||||||
if not prefs.autoplayGifs and tweet.profile.userPic.endsWith("gif"):
|
if not prefs.autoplayGifs and tweet.profile.userPic.endsWith("gif"):
|
||||||
size = "_400x400"
|
size = "_400x400"
|
||||||
genImg(tweet.profile.getUserPic(size), class="avatar")
|
|
||||||
|
let round = if prefs.squareAvatars: "" else: " round"
|
||||||
|
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