mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Round line height (#2824)

* Round line height

* Add to existing

authored by

Eric Bailey and committed by
GitHub
071efaf2 d6235453

+3 -3
+2 -2
src/components/Typography.tsx
··· 15 15 >(textSize: Size, leading: Leading) { 16 16 const size = textSize?.fontSize || atoms.text_md.fontSize 17 17 const lineHeight = leading?.lineHeight || atoms.leading_normal.lineHeight 18 - return size * lineHeight 18 + return Math.round(size * lineHeight) 19 19 } 20 20 21 21 /** ··· 32 32 33 33 if (s?.lineHeight) { 34 34 if (s.lineHeight <= 2) { 35 - s.lineHeight = fontSize * s.lineHeight 35 + s.lineHeight = Math.round(fontSize * s.lineHeight) 36 36 } 37 37 } else { 38 38 s.lineHeight = fontSize
+1 -1
src/lib/styles.ts
··· 236 236 height: number, 237 237 ): TextStyle { 238 238 return { 239 - lineHeight: (theme.typography[type].fontSize || 16) * height, 239 + lineHeight: Math.round((theme.typography[type].fontSize || 16) * height), 240 240 } 241 241 } 242 242