Skip to content

Commit

Permalink
feat(post): hide actions until tags are opened
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jan 21, 2024
1 parent 9a678a7 commit 97af94b
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions components/pages/posts/post/Post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,20 @@
:post="post"
/>

<PostDownload
v-if="mediaFile.file"
:mediaName="`${domain}-${post.id}`"
:mediaUrl="mediaFile.file"
/>
<!-- TODO: Add animation -->
<template v-if="open">
<PostDownload
v-if="mediaFile.file"
:mediaName="`${domain}-${post.id}`"
:mediaUrl="mediaFile.file"
/>

<PostSource
v-if="post.media_type !== 'unknown'"
:post-file-url="post.media_type === 'image' ? mediaFile.file : mediaFile.posterFile"
:post-sources="post.sources"
/>
<PostSource
v-if="post.media_type !== 'unknown'"
:post-file-url="post.media_type === 'image' ? mediaFile.file : mediaFile.posterFile"
:post-sources="post.sources"
/>
</template>

<HeadlessDisclosureButton
class="hover:hover-bg-util focus-visible:focus-outline-util group ml-auto flex items-center gap-1 rounded-md px-1.5 py-1"
Expand Down

0 comments on commit 97af94b

Please sign in to comment.