Mitarashi 4 anni fa
parent
commit
8d557bc490
2 ha cambiato i file con 3 aggiunte e 5 eliminazioni
  1. 2 3
      src/prefs_impl.nim
  2. 1 2
      src/views/tweet.nim

+ 2 - 3
src/prefs_impl.nim

@@ -75,7 +75,7 @@ genPrefs:
     hideReplies(checkbox, false):
       "Hide tweet replies"
 
-    squareProfileImages(checkbox, false):
+    squareAvatars(checkbox, false):
       "Square profile pictures"
 
   Media:
@@ -109,8 +109,7 @@ genPrefs:
 
     replaceInstagram(input, ""):
       "Instagram -> Bibliogram"
-      placeholder: "Bibliogram hostname"
-      
+      placeholder: "Bibliogram hostname"   
 
 iterator allPrefs*(): Pref =
   for k, v in prefList:

+ 1 - 2
src/views/tweet.nim

@@ -32,8 +32,7 @@ proc renderHeader(tweet: Tweet; retweet: string; prefs: Prefs): VNode =
         if not prefs.autoplayGifs and tweet.profile.userPic.endsWith("gif"):
           size = "_400x400"
 
-        let round = if prefs.squareProfileImages: "" else: " round"
-        
+        let round = if prefs.squareAvatars: "" else: " round"        
         genImg(tweet.profile.getUserPic(size), class=(&"avatar{round}"))
 
       tdiv(class="tweet-name-row"):