Skip to content
Snippets Groups Projects
Commit 6e2948f3 authored by Léopold Chappuis's avatar Léopold Chappuis Committed by Adrien Béraud
Browse files

conversation-preferences: enhance UI

adjust width and align components

Change-Id: I0c5cfe46e9cf30125acfd32bf98c414d11c8052d
parent 997dd579
No related branches found
No related tags found
No related merge requests found
...@@ -284,6 +284,7 @@ const Infos = () => { ...@@ -284,6 +284,7 @@ const Infos = () => {
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
alignContent: 'center', alignContent: 'center',
width: '100%',
}} }}
> >
<SettingsItemWrapper title="Description"> <SettingsItemWrapper title="Description">
...@@ -292,7 +293,7 @@ const Infos = () => { ...@@ -292,7 +293,7 @@ const Infos = () => {
type="text" type="text"
disabled={!isAdmin} disabled={!isAdmin}
onChange={onDescriptionChange} onChange={onDescriptionChange}
sx={{ maxWidth: '80%', textWrap: 'wrap' }} sx={{ maxWidth: '80%', textWrap: 'wrap', marginTop: '-6px' }}
value={description} value={description}
onAbort={() => { onAbort={() => {
setDescription(conversationInfos.description || '') setDescription(conversationInfos.description || '')
...@@ -312,7 +313,11 @@ const Infos = () => { ...@@ -312,7 +313,11 @@ const Infos = () => {
<Box>{conversationType}</Box> <Box>{conversationType}</Box>
</SettingsItemWrapper> </SettingsItemWrapper>
<SettingsItemWrapper title="Swarm ID"> <SettingsItemWrapper title="Swarm ID">
<Box maxWidth={isMedium ? '220px' : '180px'} marginLeft={'16px'}> <Box
maxWidth={isMedium ? '220px' : '180px'}
sx={{ display: 'flex', flexDirection: 'row', justifyContent: 'flex-end' }}
marginRight="-15px"
>
<EllipsisMiddle text={conversationId} /> <EllipsisMiddle text={conversationId} />
</Box> </Box>
</SettingsItemWrapper> </SettingsItemWrapper>
...@@ -620,13 +625,15 @@ const Settings = () => { ...@@ -620,13 +625,15 @@ const Settings = () => {
sx={{ sx={{
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
alignContent: 'center', alignContent: 'center',
width: '100%',
}} }}
> >
<SettingsItemWrapper title={t('conversation_color')}> <SettingsItemWrapper title={t('conversation_color')}>
<Box sx={{ marginRight: '13px' }}>
<ColorPicker conversationId={conversationId} /> <ColorPicker conversationId={conversationId} />
</Box>
</SettingsItemWrapper> </SettingsItemWrapper>
<SettingsItemWrapper title={t('mute_conversation')}> <SettingsItemWrapper title={t('mute_conversation')}>
<Switch onChange={onConversationMuteChange} checked={ignoreNotifications} /> <Switch onChange={onConversationMuteChange} checked={ignoreNotifications} />
...@@ -641,6 +648,7 @@ const Settings = () => { ...@@ -641,6 +648,7 @@ const Settings = () => {
display: 'flex', display: 'flex',
justifyContent: 'space-evenly', justifyContent: 'space-evenly',
'&:hover': { backgroundColor: 'red' }, '&:hover': { backgroundColor: 'red' },
maxWidth: '200px',
}} }}
onClick={() => { onClick={() => {
RemoveConversationDialogHandler.openDialog() RemoveConversationDialogHandler.openDialog()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment