Skip to content

Commit

Permalink
Adjusting spacing as KaTeX seems to have a shorter xHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicScrewdriver committed Sep 4, 2024
1 parent b534b50 commit 5f553a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const XGridTick = ({x, range}: {x: number; range: [Interval, Interval]}) => {
// Adjust the Y position of the x-axis labels based on
// whether the x-axis is above, within, or below the graph
const yAdjustment =
range[Y][MAX] < 0 ? -tickLabelSize : tickLabelSize * 1.5;
range[Y][MAX] < 0 ? -tickLabelSize : tickLabelSize * 1.75;

// Adjust the X position of the x-axis labels based on
// whether the label is positive or negative, in order to
Expand Down

0 comments on commit 5f553a5

Please sign in to comment.