Skip to content

Commit

Permalink
Resized Chatbox and fixed margins
Browse files Browse the repository at this point in the history
  • Loading branch information
dyland88 committed Feb 27, 2024
1 parent 211a542 commit 4f0e6ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion client/src/components/Common/ChatMessageFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ const styles = StyleSheet.create({
borderWidth: 1,
borderRadius: Dimensions.get('window').width * 0.058,
marginHorizontal: Dimensions.get('window').width * 0.005,
minHeight: Dimensions.get('window').height * 0.054,
minHeight: Dimensions.get('window').width * 0.113,
maxHeight: Dimensions.get('window').width * 0.3,
},
messageInput: {
fontSize: 16,
flex: 1,
marginBottom: Platform.OS === 'ios' ? 2 : 0,

},
icons: {
Expand All @@ -61,6 +63,8 @@ const styles = StyleSheet.create({
iconContainer: {
marginLeft: Dimensions.get('window').width * 0.02,
marginRight: Dimensions.get('window').width * 0.009,
marginBottom: Dimensions.get('window').width * 0.025,
marginTop: Dimensions.get('window').width * 0.025,
flexDirection: 'row',
alignItems: "flex-end",
justifyContent: "flex-end",
Expand All @@ -73,6 +77,9 @@ const styles = StyleSheet.create({
justifyContent: "flex-end",
flexDirection: "row",
alignSelf: "stretch",
marginRight: Dimensions.get('window').width * 0.01,
marginBottom: Dimensions.get('window').width * 0.01,
marginTop: Dimensions.get('window').width * 0.01,
}

});
4 changes: 2 additions & 2 deletions client/src/components/Common/CustomButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export const ChatSendButton: React.FC<ChatSendButtonProps> = ({ onPress }) => {

const styles = StyleSheet.create({
sendButton: {
height: Dimensions.get('window').width * 0.0975,
width: Dimensions.get('window').width * 0.0975,
height: Dimensions.get('window').width * 0.09,
width: Dimensions.get('window').width * 0.09,
borderRadius: 100,
backgroundColor: '#34D1BF',
justifyContent: 'center',
Expand Down

0 comments on commit 4f0e6ed

Please sign in to comment.