fix: overflowing last timestamp (#2271)

Co-authored-by: gitstart <gitstart@users.noreply.github.com>
Co-authored-by: palashgdev <palashgdev@gmail.com>
This commit is contained in:
GitStart 2023-02-17 06:58:09 +01:00 committed by GitHub
parent c18fff6ae8
commit c657f96032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,11 @@ function Timeline({
},0)`}
key={`${interval.label + interval.percentage + index}`}
>
<text y={13} fill={isDarkMode ? 'white' : 'black'}>
<text
y={13}
x={index === intervals.length - 1 ? -10 : 0}
fill={isDarkMode ? 'white' : 'black'}
>
{interval.label}
</text>
<line