fix: decreasing position marked positively

This commit is contained in:
TrèsAbhi committed 2024-06-06 19:23:21 -05:00
1 parent beab7601a4
commit 5031b4f8e3
1 file changed
+3 -3
+3 -3
View File
@@ -215,13 +215,13 @@ export const ratingCommand = new Promise<CommandRegistry>((resolve) => {
</span> </span>
{positionDelta !== undefined && positionDelta !== 0 && ( {positionDelta !== undefined && positionDelta !== 0 && (
<> <>
<DeltaCaret delta={positionDelta} /> <DeltaCaret delta={-positionDelta} />
<span <span
style={{ style={{
color: color:
positionDelta > 0 positionDelta > 0
? theme.colors.textLowContrast_green ? theme.colors.textLowContrast_red
: theme.colors.textLowContrast_red, : theme.colors.textLowContrast_green,
fontSize: 16, fontSize: 16,
}} }}
> >