Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
rfmt(post): reorder position of tags
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Nov 20, 2022
1 parent 09e1c55 commit c00a31e
Showing 1 changed file with 20 additions and 25 deletions.
45 changes: 20 additions & 25 deletions components/post/multiviewer/viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</button>
</template>
</Overlay>
<header>
<header class="post-header">
<div class="post-details">
<div class="poster">
<ProfilePicture
Expand Down Expand Up @@ -79,6 +79,16 @@
@archive-post="confirmArchive"
@restore-post="confirmRestore"/>
</div>
<div v-if="hasExistingTags" class="attached-tags">
<div
v-for="tag in tags"
:key="tag.id"
class="tag selected">
<span>
{{ tag.name }}
</span>
</div>
</div>
</header>
<!-- eslint-disable-next-line vue/no-v-html -->
<p class="post-content" v-html="formattedContent"></p>
Expand Down Expand Up @@ -107,18 +117,7 @@
</div>
</div>
</div>
<div class="post-footer">
<div v-if="hasExistingTags" class="attached-tags">
<h6 class="attached-tags-header">Tags</h6>
<div
v-for="tag in tags"
:key="tag.id"
class="tag selected">
<span>
{{ tag.name }}
</span>
</div>
</div>
<footer class="post-footer">
<a :href="readPostPath" class="comment-count">
<span class="material-icons icon">
comment
Expand All @@ -127,7 +126,7 @@
{{ friendlyCommentCount }}
</span>
</a>
</div>
</footer>
</article>
</template>

Expand Down Expand Up @@ -161,9 +160,8 @@
@apply p-4 bg-gray-400 bg-opacity-20 shadow-md;
@apply dark:bg-opacity-10;
header {
@apply flex flex-row justify-between;
.post-header {
@apply flex flex-col justify-between;
.post-details {
@apply mb-4;
@apply flex-1 flex flex-row justify-between;
Expand All @@ -187,6 +185,10 @@
}
}
}
.attached-tags {
@apply mb-4;
}
}
.comment-count {
Expand All @@ -198,16 +200,9 @@
word-wrap: normal;
}
.post-footer {
@apply mt-8;
.attached-tags {
@apply mb-4;
.attached-tags-header {
@apply text-sm;
}
}
}
}
Expand Down

0 comments on commit c00a31e

Please sign in to comment.