[mobile] Fix template of user page

This commit is contained in:
JuliaSvinareva 2021-05-12 20:00:00 +03:00
parent 4a383469a3
commit 2ae18c1787
3 changed files with 28 additions and 7 deletions

View file

@ -15,7 +15,7 @@ const PageUsers = inject("users")(observer(props => {
const _t = t('Common.Collaboration', {returnObjects: true}); const _t = t('Common.Collaboration', {returnObjects: true});
const storeUsers = props.users; const storeUsers = props.users;
return ( return (
<Page name="collab__users"> <Page name="collab__users" className='page-users'>
<Navbar title={_t.textUsers} backLink={_t.textBack}> <Navbar title={_t.textUsers} backLink={_t.textBack}>
{Device.phone && {Device.phone &&
<NavRight> <NavRight>
@ -29,8 +29,9 @@ const PageUsers = inject("users")(observer(props => {
<List className="coauth__list"> <List className="coauth__list">
{storeUsers.users.map((model, i) => ( {storeUsers.users.map((model, i) => (
<ListItem title={model.asc_getUserName()} key={i}> <ListItem title={model.asc_getUserName()} key={i}>
<Icon slot="media" icon="coauth__list__icon" <div slot="media" className='color' style={{backgroundColor: model.asc_getColor()}}>
style={{backgroundColor: model.asc_getColor()}}></Icon> {storeUsers.getInitials(model.asc_getUserName())}
</div>
</ListItem> </ListItem>
))} ))}
</List> </List>

View file

@ -1,5 +1,20 @@
.coauth__list__icon { .page.page-users {
width: 20px; background-color: @white;
height: 20px; .block-title {
border-radius: 10px; text-transform: none;
color: @black;
margin-top: 20px;
margin-bottom: 20px;
font-size: 17px;
font-weight: normal;
}
.color {
min-width: 40px;
min-height: 40px;
text-align: center;
border-radius: 50px;
line-height: 40px;
color: @white;
font-size: 18px;
}
} }

View file

@ -202,3 +202,8 @@
z-index: 13600; z-index: 13600;
} }
} }
.no-comments {
text-align: center;
margin-top: 35px;
}