fix: history nav scroll

This commit is contained in:
Nicola Zambello 2023-08-22 14:47:02 +02:00
parent 91bb998aa3
commit 4c353f4568
Signed by: nzambello
GPG key ID: 56E4A92C2C1E50BA

View file

@ -77,7 +77,14 @@ export default function TranslationsPage() {
<hr />
<ul className={expanded ? "block" : "hidden"}>
<ul
className={`max-h-full overflow-scroll ${
expanded ? "block" : "hidden"
}`}
style={{
maxHeight: "calc(100vh - 68px - 1px - 60px - 72px)",
}}
>
{data.translations.length === 0 ? (
<li>
<p className="p-4">No translations yet</p>