verdnatura-chat/app/containers/message/styles.js

168 lines
2.6 KiB
JavaScript
Raw Normal View History

import { StyleSheet } from 'react-native';
2019-03-29 19:36:07 +00:00
import sharedStyles from '../../views/Styles';
2019-11-25 20:01:17 +00:00
import { isTablet } from '../../utils/deviceInfo';
2019-04-08 12:35:28 +00:00
export default StyleSheet.create({
root: {
flexDirection: 'row'
},
container: {
2019-03-27 20:06:57 +00:00
paddingVertical: 4,
width: '100%',
2019-03-27 20:06:57 +00:00
paddingHorizontal: 14,
flexDirection: 'column'
},
Beta (#265) * Fabric iOS * Fabric configured on iOS and Android * - react-native-fabric configured - login tracked * README updated * Run scripts from README updated * README scripts * get rooms and messages by rest * user status * more improves * more improves * send pong on timeout * fix some methods * more tests * rest messages * Room actions (#266) * Toggle notifications * Search messages * Invite users * Mute/Unmute users in room * rocket.cat messages * Room topic layout fixed * Starred messages loading onEndReached * Room actions onEndReached * Unnecessary login request * Login loading * Login services fixed * User presence layout * ïmproves on room actions view * Removed unnecessary data from SelectedUsersView * load few messages on open room, search message improve * fix loading messages forever * Removed state from search * Custom message time format * secureTextEntry layout * Reduce android app size * Roles subscription fix * Public routes navigation * fix reconnect * - New login/register, login, register * proguard * Login flux * App init/restore * Android layout fixes * Multiple meteor connection requests fixed * Nested attachments * Nested attachments * fix check status * New login layout (#269) * Public routes navigation * New login/register, login, register * Multiple meteor connection requests fixed * Nested attachments * Button component * TextInput android layout fixed * Register fixed * Thinner close modal button * Requests /me after login only one time * Static images moved * fix reconnect * fix ddp * fix custom emoji * New message layout (#273) * Grouping messages * Message layout * Users typing animation * Image attachment layout
2018-04-24 19:34:03 +00:00
messageContent: {
flex: 1,
marginLeft: 46
},
messageContentWithHeader: {
marginLeft: 10
},
messageContentWithError: {
marginLeft: 0
},
2019-12-04 16:39:53 +00:00
center: {
alignItems: 'center'
},
flex: {
flexDirection: 'row'
// flex: 1
},
Beta (#265) * Fabric iOS * Fabric configured on iOS and Android * - react-native-fabric configured - login tracked * README updated * Run scripts from README updated * README scripts * get rooms and messages by rest * user status * more improves * more improves * send pong on timeout * fix some methods * more tests * rest messages * Room actions (#266) * Toggle notifications * Search messages * Invite users * Mute/Unmute users in room * rocket.cat messages * Room topic layout fixed * Starred messages loading onEndReached * Room actions onEndReached * Unnecessary login request * Login loading * Login services fixed * User presence layout * ïmproves on room actions view * Removed unnecessary data from SelectedUsersView * load few messages on open room, search message improve * fix loading messages forever * Removed state from search * Custom message time format * secureTextEntry layout * Reduce android app size * Roles subscription fix * Public routes navigation * fix reconnect * - New login/register, login, register * proguard * Login flux * App init/restore * Android layout fixes * Multiple meteor connection requests fixed * Nested attachments * Nested attachments * fix check status * New login layout (#269) * Public routes navigation * New login/register, login, register * Multiple meteor connection requests fixed * Nested attachments * Button component * TextInput android layout fixed * Register fixed * Thinner close modal button * Requests /me after login only one time * Static images moved * fix reconnect * fix ddp * fix custom emoji * New message layout (#273) * Grouping messages * Message layout * Users typing animation * Image attachment layout
2018-04-24 19:34:03 +00:00
temp: { opacity: 0.3 },
2019-03-27 20:06:57 +00:00
marginTop: {
2019-03-29 19:36:07 +00:00
marginTop: 6
},
reactionsContainer: {
flexDirection: 'row',
Beta (#265) * Fabric iOS * Fabric configured on iOS and Android * - react-native-fabric configured - login tracked * README updated * Run scripts from README updated * README scripts * get rooms and messages by rest * user status * more improves * more improves * send pong on timeout * fix some methods * more tests * rest messages * Room actions (#266) * Toggle notifications * Search messages * Invite users * Mute/Unmute users in room * rocket.cat messages * Room topic layout fixed * Starred messages loading onEndReached * Room actions onEndReached * Unnecessary login request * Login loading * Login services fixed * User presence layout * ïmproves on room actions view * Removed unnecessary data from SelectedUsersView * load few messages on open room, search message improve * fix loading messages forever * Removed state from search * Custom message time format * secureTextEntry layout * Reduce android app size * Roles subscription fix * Public routes navigation * fix reconnect * - New login/register, login, register * proguard * Login flux * App init/restore * Android layout fixes * Multiple meteor connection requests fixed * Nested attachments * Nested attachments * fix check status * New login layout (#269) * Public routes navigation * New login/register, login, register * Multiple meteor connection requests fixed * Nested attachments * Button component * TextInput android layout fixed * Register fixed * Thinner close modal button * Requests /me after login only one time * Static images moved * fix reconnect * fix ddp * fix custom emoji * New message layout (#273) * Grouping messages * Message layout * Users typing animation * Image attachment layout
2018-04-24 19:34:03 +00:00
flexWrap: 'wrap',
2019-03-29 19:36:07 +00:00
marginTop: 6
},
reactionButton: {
2019-03-29 19:36:07 +00:00
marginRight: 6,
marginBottom: 6,
borderRadius: 2
},
reactionContainer: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
2019-03-29 19:36:07 +00:00
borderRadius: 2,
borderWidth: 1,
height: 28,
2019-03-29 19:36:07 +00:00
minWidth: 46.3
},
reactionCount: {
fontSize: 14,
marginLeft: 3,
marginRight: 8.5,
2019-03-29 19:36:07 +00:00
...sharedStyles.textSemibold
},
reactionEmoji: {
fontSize: 13,
marginLeft: 7,
color: '#ffffff'
},
reactionCustomEmoji: {
width: 19,
height: 19,
marginLeft: 7
},
avatar: {
2019-03-27 20:06:57 +00:00
marginTop: 4
Beta (#265) * Fabric iOS * Fabric configured on iOS and Android * - react-native-fabric configured - login tracked * README updated * Run scripts from README updated * README scripts * get rooms and messages by rest * user status * more improves * more improves * send pong on timeout * fix some methods * more tests * rest messages * Room actions (#266) * Toggle notifications * Search messages * Invite users * Mute/Unmute users in room * rocket.cat messages * Room topic layout fixed * Starred messages loading onEndReached * Room actions onEndReached * Unnecessary login request * Login loading * Login services fixed * User presence layout * ïmproves on room actions view * Removed unnecessary data from SelectedUsersView * load few messages on open room, search message improve * fix loading messages forever * Removed state from search * Custom message time format * secureTextEntry layout * Reduce android app size * Roles subscription fix * Public routes navigation * fix reconnect * - New login/register, login, register * proguard * Login flux * App init/restore * Android layout fixes * Multiple meteor connection requests fixed * Nested attachments * Nested attachments * fix check status * New login layout (#269) * Public routes navigation * New login/register, login, register * Multiple meteor connection requests fixed * Nested attachments * Button component * TextInput android layout fixed * Register fixed * Thinner close modal button * Requests /me after login only one time * Static images moved * fix reconnect * fix ddp * fix custom emoji * New message layout (#273) * Grouping messages * Message layout * Users typing animation * Image attachment layout
2018-04-24 19:34:03 +00:00
},
avatarSmall: {
marginLeft: 16
},
errorButton: {
paddingLeft: 10,
paddingVertical: 5
},
2019-04-08 12:35:28 +00:00
buttonContainer: {
marginTop: 6,
flexDirection: 'row',
alignItems: 'center'
},
button: {
paddingHorizontal: 15,
height: 44,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
2019-04-17 17:01:03 +00:00
borderRadius: 2
},
2019-04-08 12:35:28 +00:00
smallButton: {
height: 30
},
buttonIcon: {
marginRight: 6
},
2019-04-08 12:35:28 +00:00
buttonText: {
fontSize: 14,
2019-03-29 19:36:07 +00:00
...sharedStyles.textMedium
},
imageContainer: {
// flex: 1,
flexDirection: 'column',
borderRadius: 4
},
image: {
width: '100%',
2019-11-25 20:01:17 +00:00
// maxWidth: 400,
minHeight: isTablet ? 300 : 200,
borderRadius: 4,
borderWidth: 1,
overflow: 'hidden'
},
imagePressed: {
opacity: 0.5
},
inlineImage: {
width: 300,
height: 300,
resizeMode: 'contain'
},
text: {
fontSize: 16,
2019-03-29 19:36:07 +00:00
...sharedStyles.textRegular
2019-04-08 12:35:28 +00:00
},
textInfo: {
fontStyle: 'italic',
fontSize: 16,
2019-04-08 12:35:28 +00:00
...sharedStyles.textRegular
},
2019-04-17 17:01:03 +00:00
startedDiscussion: {
fontStyle: 'italic',
fontSize: 16,
marginBottom: 6,
...sharedStyles.textRegular
},
2019-04-08 12:35:28 +00:00
time: {
fontSize: 12,
paddingLeft: 10,
lineHeight: 22,
...sharedStyles.textRegular,
fontWeight: '300'
2019-04-17 17:01:03 +00:00
},
repliedThread: {
flexDirection: 'row',
// flex: 1,
alignItems: 'center',
marginTop: 6,
marginBottom: 12
},
repliedThreadIcon: {
marginRight: 10,
marginLeft: 16
2019-04-17 17:01:03 +00:00
},
repliedThreadName: {
fontSize: 16,
flex: 1,
...sharedStyles.textRegular
},
readReceipt: {
lineHeight: 20
}
});