Skip to content

Commit

Permalink
feat: re-add spacing to posts
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jun 24, 2021
1 parent 086a978 commit f152d1f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions components/pages/posts/post/DynamicPostScroller.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,16 @@ export default {
},
}
</script>

<style lang="postcss">
/* Apply spacing to elements inside DynamicScrollerItem */
.vue-recycle-scroller__item-wrapper
> :not([hidden])
~ :not([hidden])
> :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
</style>

0 comments on commit f152d1f

Please sign in to comment.