mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 09:56:16 +02:00
fix: world page 'see more' bugs
This commit is contained in:
@@ -218,6 +218,7 @@ define('forum/world', [
|
|||||||
feedEl.querySelectorAll('[component="post/content"]').forEach((el) => {
|
feedEl.querySelectorAll('[component="post/content"]').forEach((el) => {
|
||||||
if (el.clientHeight < el.scrollHeight - 1) {
|
if (el.clientHeight < el.scrollHeight - 1) {
|
||||||
el.parentNode.querySelector('[component="show/more"]').classList.remove('hidden');
|
el.parentNode.querySelector('[component="show/more"]').classList.remove('hidden');
|
||||||
|
el.classList.toggle('clamp-fade-6', true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -54,12 +54,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div component="post/content" class="content text-sm text-break position-relative line-clamp-6 clamp-fade-6">
|
<div component="post/content" class="content text-sm text-break position-relative line-clamp-6">
|
||||||
<a href="{config.relative_path}/post/{./pid}" class="stretched-link"></a>
|
<a href="{config.relative_path}/post/{./pid}" class="stretched-link"></a>
|
||||||
{./content}
|
{./content}
|
||||||
</div>
|
</div>
|
||||||
<div class="position-relative hover-visible">
|
<div class="position-relative">
|
||||||
<button component="show/more" class="btn btn-light btn-sm rounded-pill position-absolute start-50 translate-middle-x bottom-0 z-1 hidden ff-secondary">[[world:see-more]]</button>
|
<button component="show/more" class="btn btn-link btn-sm fw-semibold position-absolute start-50 translate-middle-x bottom-0 z-1 hidden ff-secondary text-secondary">[[world:see-more]]</button>
|
||||||
</div>
|
</div>
|
||||||
<hr class="my-2"/>
|
<hr class="my-2"/>
|
||||||
<div class="d-flex justify-content-between">
|
<div class="d-flex justify-content-between">
|
||||||
|
|||||||
Reference in New Issue
Block a user