By default, the Search Module truncates post content within a single line with ellipsis in Default view. Showing just one line may not be enough to give users an idea what the post is about.
To wrap the post content in 3 lines with ellipsis, simply add this custom CSS in css_additional.css template.
Adjust the value 3 accordingly.
If you want a little spacing between the post content and the Channel section, add the following CSS code:
Screenshot:
Which one do you think displays the post content preview better?
Compatibility:
This code is compatible with self-hosted vB5 and vB6 as well as vBCloud.
Enjoy this FREE mod!
Please send me a ☕ if you find this mod useful!
To wrap the post content in 3 lines with ellipsis, simply add this custom CSS in css_additional.css template.
Code:
.search-widget .b-post-sm__post-content.ellipsis { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: normal; margin-top: 5px; }
Adjust the value 3 accordingly.
If you want a little spacing between the post content and the Channel section, add the following CSS code:
Code:
.search-widget .list-item-footer { margin-top: 5px; }
Screenshot:
Which one do you think displays the post content preview better?
Compatibility:
This code is compatible with self-hosted vB5 and vB6 as well as vBCloud.
Enjoy this FREE mod!
Please send me a ☕ if you find this mod useful!
Comment