1
0
Fork 0

Fix "show more" appearing below the faux padding

This commit is contained in:
Lim Chee Aun 2022-12-19 10:04:50 +08:00
parent 0a4898059b
commit 141f4a94dc

View file

@ -255,19 +255,21 @@ function StatusPage({ id }) {
</li>
);
})}
{showMore > 0 && (
<li>
<button
type="button"
class="plain block"
disabled={uiState === 'loading'}
onClick={() => setLimit((l) => l + 40)}
style={{ marginBlockEnd: '6em' }}
>
Show more&hellip;{' '}
<span class="tag">{showMore > 40 ? '40+' : showMore}</span>
</button>
</li>
)}
</ul>
{showMore > 0 && (
<button
type="button"
class="plain block"
disabled={uiState === 'loading'}
onClick={() => setLimit((l) => l + 40)}
style={{ marginBlockEnd: '6em' }}
>
Show more&hellip;{' '}
<span class="tag">{showMore > 40 ? '40+' : showMore}</span>
</button>
)}
</div>
</div>
);