We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi
And thanks for a greate component.
I have this:
<div class="font-weight-bold">{{ item.user.username }}</div> <div class="comment-text"> <v-clamp autoresize :max-lines="3"> {{ item.text }} <button v-if="expanded || clamped" slot="after" slot-scope="{ toggle, expanded, clamped }" class="comment-toggle" @click="toggle"> <template v-if="clamped"> {{ $t('ShowMore') }} </template> <template v-if="expanded"> {{ $t('ShowLess') }} </template> </button> </v-clamp> </div>
And item.text = "Hello\n\nMy name is...\n and i live in..."
The problem is thet all the text is on the same line. Then i try this css: .comment-text span span { white-space: pre-line; }
.comment-text span span { white-space: pre-line; }
Then i first recive a empty line, then i se "Hello" and the third line contains, "... Read more".
How can i craete a new line when the text contains \n? Or remove the first line?
Result:
But should be:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi
And thanks for a greate component.
I have this:
And item.text = "Hello\n\nMy name is...\n and i live in..."
The problem is thet all the text is on the same line. Then i try this css:
.comment-text span span { white-space: pre-line; }
Then i first recive a empty line, then i se "Hello" and the third line contains, "... Read more".
How can i craete a new line when the text contains \n? Or remove the first line?
Result:
But should be:
The text was updated successfully, but these errors were encountered: