Skip to content

Commit

Permalink
vinvoor: minor heatmap mobile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie authored and hannes-dev committed Aug 26, 2024
1 parent be8caa4 commit f1c0a4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion vinvoor/src/overview/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const Overview = () => {
sx={{
padding: 2,
width: "100%",
height: { xs: "auto", lg: paperHeight },
height: paperHeight,
display: "flex",
justifyContent: "center",
}}
Expand Down
14 changes: 7 additions & 7 deletions vinvoor/src/overview/heatmap/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ export const styleMonth = [

// Size

export const RECT_SIZE = (isSmallView: boolean) => (isSmallView ? 5 : 20);
export const RECT_RADIUS = (isSmallView: boolean) => (isSmallView ? 1 : 4);
export const RECT_STROKE = (isSmallView: boolean) => (isSmallView ? 1 : 2);
export const SPACE = (isSmallView: boolean) => (isSmallView ? 2 : 10);
export const TOP_PAD = (isSmallView: boolean) => (isSmallView ? 8 : 25);
export const RECT_SIZE = (isSmallView: boolean) => (isSmallView ? 3 : 20);
export const RECT_RADIUS = (isSmallView: boolean) => (isSmallView ? 0.5 : 4);
export const RECT_STROKE = (isSmallView: boolean) => (isSmallView ? 0.3 : 2);
export const SPACE = (isSmallView: boolean) => (isSmallView ? 1.5 : 10);
export const TOP_PAD = (isSmallView: boolean) => (isSmallView ? 6 : 25);
export const LEFT_PAD = (isSmallView: boolean) => (isSmallView ? 2 : 5);
export const MONTH_RECT_Y = (isSmallView: boolean) => (isSmallView ? 5 : 15);
export const FONT_SIZE = (isSmallView: boolean) => (isSmallView ? 4 : 15);
export const MONTH_RECT_Y = (isSmallView: boolean) => (isSmallView ? 4 : 15);
export const FONT_SIZE = (isSmallView: boolean) => (isSmallView ? 3 : 15);

// Month labels

Expand Down

0 comments on commit f1c0a4d

Please sign in to comment.