@@ -12,35 +12,50 @@ const WorkspaceCard = ({ title, desc, nickName, createDate, onClick, onDelete, h
12
12
return (
13
13
< div className = { styles . workspace_card } >
14
14
< div className = { styles . workspace_card_container } >
15
- < div className = { styles . workspace_card_header } >
15
+ < div className = { styles . workspace_card_header } style = { { cursor : 'pointer' } } onClick = { onClick } >
16
16
< div className = { styles . workspace_card_header_left } >
17
17
< div className = { styles . workspace_card_icon } >
18
18
< img src = { workspaceSvg } alt = "svgIcon" />
19
19
</ div >
20
20
< div className = { styles . workspace_card_title } > { title } </ div >
21
21
</ div >
22
22
< div >
23
- < Button type = 'link' onClick = { ( ) => handleEdit ( {
24
- name : title ,
25
- description : desc ,
26
- } ) } >
23
+ < Button type = 'link' onClick = { ( e ) => {
24
+ e . stopPropagation ( ) ;
25
+ handleEdit ( {
26
+ name : title ,
27
+ description : desc ,
28
+ } ) ;
29
+ } } >
27
30
< EditOutlined />
28
31
</ Button >
29
32
< Popconfirm
30
- title = " Delete the workspace"
31
- description = " Are you sure to delete this workspace?"
33
+ title = { < span style = { { fontSize : '18px' } } > Delete the workspace</ span > }
34
+ description = { < span style = { { fontSize : '16px' } } > Are you sure to delete this workspace?</ span > }
32
35
onConfirm = { ( event ) => {
33
36
event . stopPropagation ( )
34
37
onDelete ( )
35
38
} }
36
- okText = "Yes"
37
- cancelText = "No"
39
+ onCancel = { ( e ) => {
40
+ e . stopPropagation ( )
41
+ } }
42
+ okText = { < span style = { { fontSize : '16px' } } > Yes</ span > }
43
+ cancelText = { < span style = { { fontSize : '16px' } } > No</ span > }
44
+ overlayStyle = { {
45
+ width : '330px'
46
+ } }
47
+ okButtonProps = { {
48
+ style : { height : '30px' , width : '60px' }
49
+ } }
50
+ cancelButtonProps = { {
51
+ style : { height : '30px' , width : '60px' }
52
+ } }
38
53
>
39
- < Button type = 'link' danger > < DeleteOutlined /> </ Button >
54
+ < Button type = 'link' danger onClick = { ( e ) => e . stopPropagation ( ) } > < DeleteOutlined /> </ Button >
40
55
</ Popconfirm >
41
56
</ div >
42
57
</ div >
43
- < div className = { styles . workspace_card_content } onClick = { onClick } >
58
+ < div className = { styles . workspace_card_content } onClick = { onClick } style = { { cursor : 'pointer' } } >
44
59
< Tooltip title = { desc } placement = "topLeft" >
45
60
< div className = { styles . kusion_card_content_desc } >
46
61
{ desc }
0 commit comments