slightly smaller svg icon

This commit is contained in:
Rares Mardare 2022-10-06 16:49:40 +03:00
parent 02988ec38d
commit 32be2c6968
3 changed files with 10 additions and 4 deletions

View file

@ -83,4 +83,4 @@
.is-oncall-icon {
color: var(--oncall-icon-stroke-color);
margin-left: -2px;
}
}

View file

@ -287,7 +287,9 @@ const AvatarGroup = (props: AvatarGroupProps) => {
width={35}
height={35}
renderAvatar={() => <Avatar src={user.avatar} size="large" />}
renderIcon={() => (isOncall ? <IsOncallIcon className={cx('is-oncall-icon')} /> : null)}
renderIcon={() =>
isOncall ? <IsOncallIcon className={cx('is-oncall-icon')} width={14} height={13} /> : null
}
></ScheduleBorderedAvatar>
</div>
</Tooltip>

View file

@ -247,16 +247,20 @@ export const ExpandIcon = (props: IconProps) => {
interface IsOncallIconProps {
className: string;
width?: number;
height?: number;
}
export const IsOncallIcon = (props: IsOncallIconProps) => {
const { className } = props;
const width = props.width || 17;
const height = props.height || 16;
return (
<svg
className={className}
width="17"
height="16"
width={width}
height={height}
viewBox="0 0 17 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"