Skip to content

Commit f187f92

Browse files
committed
OpenConceptLab/ocl_issues#2270 | using better icons
1 parent ff2ba20 commit f187f92

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/components/map-projects/ProjectLogs.jsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import Typography from '@mui/material/Typography';
1212
import Tooltip from '@mui/material/Tooltip';
1313

1414
import OpenIcon from '@mui/icons-material/CropSquare';
15-
import CreateIcon from '@mui/icons-material/Add';
16-
import UpdateIcon from '@mui/icons-material/Edit';
1715
import RepoIcon from '../repos/RepoIcon'
1816
import HistoryIcon from '@mui/icons-material/ChangeHistory';
1917

@@ -32,9 +30,9 @@ const ProjectLogs = ({onClose, logs}) => {
3230
const getIconAndColor = log => {
3331
const action = log?.action?.toLowerCase()
3432
if(action === 'created')
35-
return [<CreateIcon key='create' color='primary' />, 'primary']
33+
return [<i key="created" className="fa-brands fa-octopus-deploy" style={{color: PRIMARY_COLORS.main, fontSize: '1.25rem', width: '1em', height: '1em'}}></i>, 'primary']
3634
if(action === 'updated')
37-
return [<UpdateIcon key='update' color='warning' />, 'warning']
35+
return [<HistoryIcon key='update' color='warning' />, 'warning']
3836
if(action === 'saved_to_collection')
3937
return [<RepoIcon key='collection' selected noTooltip />, 'primary']
4038
if(action === 'opened')
@@ -64,10 +62,10 @@ const ProjectLogs = ({onClose, logs}) => {
6462
</Typography>
6563
<CloseIconButton color='secondary' onClick={onClose} />
6664
</div>
67-
<div className='col-xs-12 padding-0' style={{maxHeight: 'calc(100vh - 360px)', overflow: 'auto'}}>
65+
<div className='col-xs-12 padding-0' style={{maxHeight: 'calc(100vh - 190px)', overflow: 'auto'}}>
6866
<Timeline
6967
sx={{
70-
padding: '4px 16px',
68+
padding: '4px 20px',
7169
marginBottom: 0,
7270
[`& .${timelineItemClasses.root}:before`]: {
7371
flex: 0,

0 commit comments

Comments
 (0)