Skip to content

Commit

Permalink
Add unified primary column transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonamil committed Jul 19, 2024
1 parent d5a8b6b commit 2bac7e3
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/components/ThePrimaryColumn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,19 @@
<TheLinkColumnBody v-if="showLinkColumn" />
<TheCommentsColumnBody v-else />
</template>
<template v-else>
<TheLinkColumnBody v-show="showLinkColumn" />
<TheCommentsColumnBody v-show="!showLinkColumn" />
</template>
<div
v-else
class="relative flex flex-1 overflow-hidden bg-blank-color"
>
<TheLinkColumnBody
class="transition-transform duration-300"
:class="[!showLinkColumn ? '-translate-x-full' : '']"
/>
<TheCommentsColumnBody
class="absolute inset-0 transition-transform duration-300"
:class="[showLinkColumn ? 'translate-x-full' : '']"
/>
</div>

<PageColumnControls
v-if="view.availableColumns <= 2 && content.currentPostItemHasLinkAndComments"
Expand Down

1 comment on commit 2bac7e3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for hackernews-dot-cool ready!

✅ Preview
https://hackernews-dot-cool-ks0kbnddk-jonamil-56ba8df7.vercel.app

Built with commit 2bac7e3.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.