fix(ui) Fix new icons issues (#12545)

This commit is contained in:
Robert Pintilii 2022-11-11 09:58:55 +02:00 committed by GitHub
parent b00a17c1c3
commit a884a6b232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 12 deletions

View File

@ -143,7 +143,7 @@ const useStyles = makeStyles()((theme: Theme) => {
}, },
iconButton: { iconButton: {
padding: '10px' padding: theme.spacing(2)
}, },
textWithIcon: { textWithIcon: {
@ -166,7 +166,7 @@ const useStyles = makeStyles()((theme: Theme) => {
...withPixelLineHeight(theme.typography.bodyShortBoldLarge), ...withPixelLineHeight(theme.typography.bodyShortBoldLarge),
'&.iconButton': { '&.iconButton': {
padding: '14px' padding: '12px'
} }
}, },

View File

@ -4,7 +4,7 @@ import Tooltip from '@atlaskit/tooltip';
import React from 'react'; import React from 'react';
import { translate } from '../../../base/i18n'; import { translate } from '../../../base/i18n';
import { IconWarning } from '../../../base/icons'; import { IconExclamationTriangle } from '../../../base/icons/svg';
import { Label } from '../../../base/label'; import { Label } from '../../../base/label';
import { COLORS } from '../../../base/label/constants'; import { COLORS } from '../../../base/label/constants';
import { connect } from '../../../base/redux'; import { connect } from '../../../base/redux';
@ -26,7 +26,7 @@ class InsecureRoomNameLabel extends AbstractInsecureRoomNameLabel {
position = 'bottom'> position = 'bottom'>
<Label <Label
color = { COLORS.red } color = { COLORS.red }
icon = { IconWarning } /> icon = { IconExclamationTriangle } />
</Tooltip> </Tooltip>
); );
} }

View File

@ -52,10 +52,6 @@ const useStyles = makeStyles()(() => {
'&>div': { '&>div': {
display: 'flex', display: 'flex',
overflow: 'hidden' overflow: 'hidden'
},
'&:first-child': {
marginLeft: '6px'
} }
} }
}; };

View File

@ -118,8 +118,8 @@ const styles = () => {
borderRadius: '4px', borderRadius: '4px',
'& svg': { '& svg': {
width: '20px', width: '18px',
height: '20px' height: '18px'
} }
}, },

View File

@ -120,8 +120,8 @@ const styles = () => {
borderRadius: '4px', borderRadius: '4px',
'& svg': { '& svg': {
width: '20px', width: '18px',
height: '20px' height: '18px'
} }
}, },