Link to post instead of profile in card header

It's easy to get from post to profile, but not so easy to find
out only the small timestamp below the post links to the actual post.
This commit is contained in:
Marcel Hellkamp 2023-08-15 15:24:11 +02:00
parent 8d2d5185f5
commit 51eda16084

View File

@ -31,10 +31,10 @@ const playVideo = computed(() => {
<div class="wall-item">
<div class="card mx-2 my-3" :class="post.pinned ? 'pinned' : ''">
<div v-if="post.author" class="card-header d-flex align-items-center">
<div v-if="post.author?.avatar" class="flex-shrink-0">
<a v-if="post.author?.avatar" :href="post.url" target="_blank" class="flex-shrink-0">
<img :src="post.author.avatar" class="me-2 avatar" />
</div>
<a :href="post.author.url || post.url" target="_blank" class="text-body flex-grow-1 m-0 avatarlink">
</a>
<a :href="post.url" target="_blank" class="text-body flex-grow-1 m-0 avatarlink">
<div v-dompurify-html="post.author.name" class="displayname"></div>
<div v-dompurify-html="post.author.profile" class="profile"></div>
</a>