Skip to content

Commit

Permalink
trigger viewed post teaser when footer is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogge committed Feb 25, 2021
1 parent b1fd336 commit 70047b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webapp/components/PostTeaser/PostTeaser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
'--blur-image': post.image && post.image.sensitive,
}"
:highlight="isPinned"
v-observe-visibility="(isVisible, entry) => visibilityChanged(isVisible, entry, post.id)"
>
<template v-if="post.image" #heroImage>
<img :src="post.image | proxyApiUrl" class="image" />
Expand All @@ -23,7 +22,10 @@
<!-- eslint-disable vue/no-v-html -->
<div class="content hyphenate-text" v-html="excerpt" />
<!-- eslint-enable vue/no-v-html -->
<footer class="footer">
<footer
class="footer"
v-observe-visibility="(isVisible, entry) => visibilityChanged(isVisible, entry, post.id)"
>
<div class="categories-placeholder"></div>
<counter-icon
icon="bullhorn"
Expand Down

0 comments on commit 70047b1

Please sign in to comment.