Skip to content

Commit

Permalink
chore: Change font-size into SVG
Browse files Browse the repository at this point in the history
  • Loading branch information
firejune committed Nov 5, 2023
1 parent 77bbe84 commit df89550
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/app/[username]/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ const boxSize = 10
const boxMargin = 3
const canvasMargin = 3
const borderRadius = 2
const textSize = 10
const textHeight = textSize + boxMargin
const textHeight = 13
const textWidth = 28 + boxMargin
const yearHeight = textHeight + (boxSize + boxMargin) * 7 + canvasMargin
const fontSize = `${textSize}px`
const fontSize = '12px'

const Chart = ({ data = [], scheme }: ChartProps) => {
const height = yearHeight + canvasMargin * 2
Expand Down
3 changes: 2 additions & 1 deletion src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ a {
box-sizing: border-box;
}

svg, img {
svg,
img {
width: 100%;
height: auto;
}
Expand Down

0 comments on commit df89550

Please sign in to comment.