#Content appears and disappears 🥹

2 messages · Page 1 of 1 (latest)

dry acorn
#

I was using this bit of code to slice just what i needed. And I noticed it was not always appearing.

        <p class="px-4 pb-6" v-html="post.content2.slice(0, 200)"></p>

So I swapped to this snippet

        <p class="px-4 pb-6 h-24 overflow-y-hidden overflow-clip leading-6" v-html="post.content2"></p>

I was thinking that CSS was the better choice. But it's still behaving weirdly 🤔

The content appears only when I click an article, but after refreshing the /Directus URL it disappears again. This happens on both localhost and live URL.
Live URL is available here https://traversy-tailwindcss.vercel.app/Directus

#

Forgot to share video clip.