Tooltip text fix

This commit is contained in:
kartik-gupta-ij 2023-10-30 21:24:50 +05:30
parent 23f19d8f02
commit 47f21ae36b
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ export function CodeContainer(props: CodeContainerProps) {
} }
} }
> >
<Tooltip label={`Load ${codeLineFrom-10} to ${codeLineFrom-1} `} withArrow> <Tooltip label={`Load ${codeLineFrom-10>0?codeLineFrom-10:1} to ${codeLineFrom-1} `} withArrow>
<span className={classes.codeLoad} onClick={loadUpperCode}> <span className={classes.codeLoad} onClick={loadUpperCode}>
<IconFoldUp /> <IconFoldUp />
</span> </span>
@ -182,7 +182,7 @@ export function CodeContainer(props: CodeContainerProps) {
} }
} }
> >
<Tooltip label={`Load ${line_to + codeLineTo+2} to ${line_to + codeLineTo+11}`} withArrow> <Tooltip label={`Load ${line_to + codeLineTo+2} to ${line_to + codeLineTo+11<context.lower_lines.split("\n").length+line_to?line_to + codeLineTo+11:context.lower_lines.split("\n").length+line_to}`} withArrow>
<span <span
className={classes.codeLoad} className={classes.codeLoad}
style={{ style={{