fix an view jumping issue in the case that the horizontal scrollbar shifts the view too much

This commit is contained in:
gempir 2020-11-21 13:42:24 +01:00
parent 08eeca948b
commit 132f669e7e

View file

@ -50,7 +50,6 @@ export function ContentLog({ year, month }: { year: string, month: string }) {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
return <ContentLogContainer onMouseEnter={handleMouseEnter}>
<TextField
className="search"
@ -69,7 +68,7 @@ export function ContentLog({ year, month }: { year: string, month: string }) {
<List
className="list"
height={600}
itemCount={logs.length}
itemCount={logs.length - 1}
itemSize={20}
width={"100%"}
>