Skip to content

Commit

Permalink
update offset
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceyan committed Nov 13, 2023
1 parent 07f5cf4 commit 5b390e6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function xAxisOffset(props: CommonThemeProps) {
}

const PADDING_UNDER_HEADERS_PX = 5;
const TOP_LEFT_CORNER_OFFSET_PX = 6;

export const SELECTED_STYLE = {
backgroundColor: LIGHT_GRAY.D,
Expand Down Expand Up @@ -106,7 +107,7 @@ export const TopLeftCornerMask = styled.div<TopLeftCornerMaskProps>`
z-index: ${ZIndex.TopLeftCornerMask};
top: 0px;
left: 0px;
width: ${Y_AXIS_CHART_WIDTH_PX}px;
width: ${Y_AXIS_CHART_WIDTH_PX + TOP_LEFT_CORNER_OFFSET_PX}px;
height: ${(props) =>
props.height + xAxisOffset(props) || X_AXIS_CHART_HEIGHT_PX}px;
min-height: ${(props) => props.height}px;
Expand Down

0 comments on commit 5b390e6

Please sign in to comment.