align chat icon
This commit is contained in:
parent
cc20069a28
commit
5df5dfbd81
|
@ -25,7 +25,7 @@ function IconTextField(props) {
|
|||
const { iconName, classes } = props
|
||||
return (
|
||||
<div className={classes.iconRoot}>
|
||||
<Icon name={iconName} className={classes.icon} />
|
||||
<Icon name={iconName} className={classes.icon} centered />
|
||||
<StatusTextField {...props} className={classes.textField} />
|
||||
</div>
|
||||
)
|
||||
|
|
|
@ -15,7 +15,7 @@ const icons = {
|
|||
[PHOTO]: Photo
|
||||
}
|
||||
|
||||
const Icon = ({ name }) => {
|
||||
const Icon = ({ name, centered }) => {
|
||||
const Component = icons[name]
|
||||
return (
|
||||
<div style={{
|
||||
|
@ -23,8 +23,8 @@ const Icon = ({ name }) => {
|
|||
borderRadius: '50%',
|
||||
padding: '10px',
|
||||
maxHeight: '45px',
|
||||
justifySelf: 'center'
|
||||
}}>
|
||||
justifySelf: centered ? 'center' : 'auto'
|
||||
}} >
|
||||
<Component />
|
||||
</div>
|
||||
)
|
||||
|
|
|
@ -81,7 +81,11 @@ const styles = theme => ({
|
|||
gridColumnStart: 1,
|
||||
gridColumnEnd: 13,
|
||||
justifyItems: 'start',
|
||||
gridAutoFlow: 'column'
|
||||
gridAutoFlow: 'column',
|
||||
paddingLeft: '5px'
|
||||
},
|
||||
chatRoomIcon: {
|
||||
justifySelf: 'auto'
|
||||
},
|
||||
chatText: {
|
||||
marginTop: '15px',
|
||||
|
|
Loading…
Reference in New Issue