mirror of https://github.com/tooot-app/app
Fixed #573
This commit is contained in:
parent
2c7772d4c2
commit
96a448d602
|
@ -33,8 +33,6 @@ const ComposeTextInput: React.FC = () => {
|
||||||
paddingBottom: StyleConstants.Spacing.M,
|
paddingBottom: StyleConstants.Spacing.M,
|
||||||
marginHorizontal: StyleConstants.Spacing.Global.PagePadding,
|
marginHorizontal: StyleConstants.Spacing.Global.PagePadding,
|
||||||
color: colors.primaryDefault,
|
color: colors.primaryDefault,
|
||||||
borderBottomWidth: 0.5,
|
|
||||||
borderBottomColor: colors.backgroundDefaultTransparent,
|
|
||||||
fontSize: adaptedFontsize,
|
fontSize: adaptedFontsize,
|
||||||
lineHeight: adaptedLineheight
|
lineHeight: adaptedLineheight
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -3,13 +3,13 @@ const Base = 4
|
||||||
export const StyleConstants = {
|
export const StyleConstants = {
|
||||||
Font: {
|
Font: {
|
||||||
Size: { S: 14, M: 16, L: 18 },
|
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' }
|
Weight: { Normal: '400' as '400', Bold: '600' as '600' }
|
||||||
},
|
},
|
||||||
FontStyle: {
|
FontStyle: {
|
||||||
S: { fontSize: 14, lineHeight: 20 },
|
S: { fontSize: 14, lineHeight: 18 },
|
||||||
M: { fontSize: 16, lineHeight: 22 },
|
M: { fontSize: 16, lineHeight: 21 },
|
||||||
L: { fontSize: 20, lineHeight: 28 }
|
L: { fontSize: 20, lineHeight: 26 }
|
||||||
},
|
},
|
||||||
|
|
||||||
Spacing: {
|
Spacing: {
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
// import { Dimensions } from 'react-native'
|
const adaptiveScale = (size: number, factor: number = 0) => Math.round(size + size * (factor / 8))
|
||||||
|
|
||||||
// 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)
|
|
||||||
|
|
||||||
export { adaptiveScale }
|
export { adaptiveScale }
|
||||||
|
|
Loading…
Reference in New Issue