瀏覽代碼

Use 'hover' instead of 'expand' for attribute

sbkwgh 8 年之前
父節點
當前提交
61686948e9
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/components/routes/Thread.vue

+ 2 - 1
src/components/routes/Thread.vue

@@ -36,6 +36,7 @@
 					<div class='post__avatar' :style='{"background-color": post.User.color}'>{{post.User.username[0]}}</div>
 					<div class='post__user'>{{post.User.username}}</div>
 					<span class='fa fa-reply post__reply_icon' v-if='post.replyingToUsername'></span>
+
 					<div class='post__reply' v-if='post.replyingToUsername' @click='goToPost(post.replyId)'>{{post.replyingToUsername}}</div>
 					<div class='post__date'>{{post.createdAt | formatDate('time|date', ', ')}}</div>
 				</div>
@@ -48,7 +49,7 @@
 						<post-reply
 							v-for='reply in post.Replies'
 							:post='reply'
-							:expanded='postIndexHover === index'
+							:hover='postIndexHover === index'
 							@click='goToPost(reply.id)'
 						></post-reply>
 					</div>