Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expanded text showing #11

Open
steven-twerdochlib opened this issue Jun 14, 2024 · 0 comments
Open

Expanded text showing #11

steven-twerdochlib opened this issue Jun 14, 2024 · 0 comments

Comments

@steven-twerdochlib
Copy link

Hi,

I'm currently using this code to allow the user to minimise long text:
<template v-if="expanded"> <div class="clamp-section"> <a @click="toggleClamp">Read less</a> </div> </template>

The issue I'm having is that 'Read less' appears for text that isn't above the maximum number lines but I need to expand the text for ones that are and (as far as I know) there's no way for me to know if the text is above the maximum number of lines or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant