Skip to content

Commit

Permalink
Adjust titlepadding for chat
Browse files Browse the repository at this point in the history
  • Loading branch information
rottabonus committed Oct 15, 2023
1 parent d79f162 commit 8539ae2
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/Screens/Main/Chat/Title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { getMentorByUserId } from '../../../state/reducers/mentors';
import colors from '../../components/colors';
import { cardBorderRadius } from '../../components/Card';
import fonts from '../../components/fonts';
import { isDevice } from 'src/lib/isDevice';

type StateProps = {
name: string;
Expand Down Expand Up @@ -41,7 +42,14 @@ const Title: React.FC<Props> = ({
const mentor = useSelector(getMentorByUserId(buddyId));

return (
<RN.View onLayout={onLayout} style={[styles.blob, style]}>
<RN.View
onLayout={onLayout}
style={[
styles.blob,
isDevice('ios') ? styles.iosPadding : styles.androidPadding,
style,
]}
>
<SafeAreaView style={styles.safeArea}>
{!onPress ? null : (
<RN.TouchableOpacity
Expand Down Expand Up @@ -105,12 +113,17 @@ const styles = RN.StyleSheet.create({
minHeight: 80,
borderBottomRightRadius: cardBorderRadius,
borderBottomLeftRadius: cardBorderRadius,
paddingVertical: 16,
paddingHorizontal: 8,
flexDirection: 'row',
alignItems: 'center',
backgroundColor: colors.darkBlue,
},
androidPadding: {
paddingVertical: 16,
},
iosPadding: {
paddingTop: 16,
},
safeArea: {
flexDirection: 'row',
alignItems: 'center',
Expand Down Expand Up @@ -139,6 +152,7 @@ const styles = RN.StyleSheet.create({
name: {
...fonts.regularBold,
flex: 1,
textAlignVertical: 'center',
flexWrap: 'wrap',
},
nameContainer: {
Expand Down

0 comments on commit 8539ae2

Please sign in to comment.