mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
RemoveHtml before counting
- to decide whether to collapse or not - reduce the innerHtml length to 180
This commit is contained in:
parent
d6ae96f94b
commit
6542a0a584
@ -38,14 +38,14 @@
|
||||
</div>
|
||||
<div v-show="!openEditCommentMenu">
|
||||
<content-viewer
|
||||
v-if="comment.content.length < 400"
|
||||
v-if="$filters.removeHtml(comment.content).length < 180"
|
||||
:content="comment.content"
|
||||
class="padding-left"
|
||||
/>
|
||||
<div v-else class="show-more-or-less-div">
|
||||
<content-viewer
|
||||
v-if="isCollapsed"
|
||||
:content="$filters.truncate(comment.content, 400)"
|
||||
:content="$filters.truncate(comment.content, 180)"
|
||||
class="padding-left text-align-left"
|
||||
/>
|
||||
<span class="show-more-or-less">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user