Explorar el Código

Make tweet profile pics clickable

Zed hace 7 años
padre
commit
a801b01142
Se han modificado 2 ficheros con 7 adiciones y 1 borrados
  1. 4 0
      public/style.css
  2. 3 1
      src/views/tweet.nimf

+ 4 - 0
public/style.css

@@ -277,6 +277,10 @@ nav {
     border-radius: 50%;
 }
 
+.tweet-avatar {
+    display: contents !important;
+}
+
 .retweet, .pinned, .tweet-stats {
     align-content: center;
     color: hsla(240,1%,73%,.7);

+ 3 - 1
src/views/tweet.nimf

@@ -15,7 +15,9 @@
 #end if
 <div class="media-heading">
   <div class="heading-name-row">
-    ${genImg(tweet.profile.getUserpic("_bigger"), "avatar")}
+    <a class="tweet-avatar" href="/${tweet.profile.username}">
+      ${genImg(tweet.profile.getUserpic("_bigger"), "avatar")}
+    </a>
     <div class="fullname-and-username">
       ${linkUser(tweet.profile, class="fullname")}
       ${linkUser(tweet.profile, class="username")}