File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
src/screens/projects/components/ProjectNode Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ export default observer(function ProjectNode({ project }: ProjectNodeProps) {
2222
2323 return (
2424 < div className = { classes . projectNode } >
25- < div > { project . title } </ div >
25+ < div
26+ className = { classes . projectColor }
27+ style = { { backgroundColor : project . color } }
28+ />
29+ < div className = { classes . title } > { project . title } </ div >
2630 < EditOutlined className = { classes . editButton } onClick = { onClick } />
2731 </ div >
2832 ) ;
@@ -32,13 +36,21 @@ const useStyle = createUseStyles({
3236 projectNode : {
3337 display : 'flex' ,
3438 flexDirection : 'row' ,
35- justifyContent : 'space-between' ,
3639 alignItems : 'center' ,
3740
3841 '&:hover $editButton' : {
3942 display : 'inline' ,
4043 } ,
4144 } ,
45+ projectColor : {
46+ width : 16 ,
47+ height : 16 ,
48+ borderRadius : 4 ,
49+ marginRight : 8 ,
50+ } ,
51+ title : {
52+ flex : 1 ,
53+ } ,
4254 editButton : {
4355 display : 'none' ,
4456 } ,
You can’t perform that action at this time.
0 commit comments