mirror of
https://github.com/tooot-app/app
synced 2025-01-30 18:24:50 +01:00
Fixed #573
This commit is contained in:
parent
2c7772d4c2
commit
96a448d602
@ -33,8 +33,6 @@ const ComposeTextInput: React.FC = () => {
|
||||
paddingBottom: StyleConstants.Spacing.M,
|
||||
marginHorizontal: StyleConstants.Spacing.Global.PagePadding,
|
||||
color: colors.primaryDefault,
|
||||
borderBottomWidth: 0.5,
|
||||
borderBottomColor: colors.backgroundDefaultTransparent,
|
||||
fontSize: adaptedFontsize,
|
||||
lineHeight: adaptedLineheight
|
||||
}}
|
||||
|
@ -3,13 +3,13 @@ const Base = 4
|
||||
export const StyleConstants = {
|
||||
Font: {
|
||||
Size: { S: 14, M: 16, L: 18 },
|
||||
LineHeight: { S: 20, M: 22, L: 28 },
|
||||
LineHeight: { S: 18, M: 21, L: 26 },
|
||||
Weight: { Normal: '400' as '400', Bold: '600' as '600' }
|
||||
},
|
||||
FontStyle: {
|
||||
S: { fontSize: 14, lineHeight: 20 },
|
||||
M: { fontSize: 16, lineHeight: 22 },
|
||||
L: { fontSize: 20, lineHeight: 28 }
|
||||
S: { fontSize: 14, lineHeight: 18 },
|
||||
M: { fontSize: 16, lineHeight: 21 },
|
||||
L: { fontSize: 20, lineHeight: 26 }
|
||||
},
|
||||
|
||||
Spacing: {
|
||||
|
@ -1,15 +1,3 @@
|
||||
// import { Dimensions } from 'react-native'
|
||||
|
||||
// const { width } = Dimensions.get('screen')
|
||||
|
||||
// const guidelineBaseWidth = 375
|
||||
// const guidelineBaseHeight = 667
|
||||
|
||||
// const scale = (size: number) => (width / guidelineBaseWidth) * size
|
||||
// const verticalScale = (size: number) => (height / guidelineBaseHeight) * size
|
||||
// const adaptiveScale = (size: number, factor: number = 0) =>
|
||||
// size + (scale(size) - size) * factor
|
||||
const adaptiveScale = (size: number, factor: number = 0) =>
|
||||
size + size * (factor / 8)
|
||||
const adaptiveScale = (size: number, factor: number = 0) => Math.round(size + size * (factor / 8))
|
||||
|
||||
export { adaptiveScale }
|
||||
|
Loading…
x
Reference in New Issue
Block a user