diff --git a/src/screens/Compose/Root/Header/TextInput.tsx b/src/screens/Compose/Root/Header/TextInput.tsx index 13c00687..092ea7a2 100644 --- a/src/screens/Compose/Root/Header/TextInput.tsx +++ b/src/screens/Compose/Root/Header/TextInput.tsx @@ -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 }} diff --git a/src/utils/styles/constants.ts b/src/utils/styles/constants.ts index e20c5546..a8ad52f5 100644 --- a/src/utils/styles/constants.ts +++ b/src/utils/styles/constants.ts @@ -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: { diff --git a/src/utils/styles/scaling.ts b/src/utils/styles/scaling.ts index ac6c1f3f..921ce461 100644 --- a/src/utils/styles/scaling.ts +++ b/src/utils/styles/scaling.ts @@ -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 }