@@ -3,23 +3,23 @@ import { Tooltip } from "utils/antd.tsx";
33
44const tooltipSteps = [
55 {
6- text : " Select multiple items: Hold \ "<b>SHIFT</b>\ " and drag your mouse." ,
7- icon : '⇧' ,
6+ text : ' Select multiple items: Hold "<b>SHIFT</b>" and drag your mouse.' ,
7+ icon : "⇧" ,
88 } ,
99 {
10- text : " Delete selected items: Press \ "<b>BACKSPACE</b>\"." ,
11- icon : '⌫' ,
10+ text : ' Delete selected items: Press "<b>BACKSPACE</b>".' ,
11+ icon : "⌫" ,
1212 } ,
1313 {
14- text : " Deactivate Quick Wall: Press \ "<b>ESC</b>\"." ,
14+ text : ' Deactivate Quick Wall: Press "<b>ESC</b>".' ,
1515 icon : "␛" ,
1616 } ,
1717 {
18- text : " Duplicate selected items: Press \ "<b>D</b>\"." ,
19- icon : 'D' ,
18+ text : ' Duplicate selected items: Press "<b>D</b>".' ,
19+ icon : "D" ,
2020 } ,
2121 {
22- text : " Undo/Redo: Press \ "<b>CTRL + Z</b>\ " / \ "<b>CTRL + SHIFT + Z</b>\"." ,
22+ text : ' Undo/Redo: Press "<b>CTRL + Z</b>" / "<b>CTRL + SHIFT + Z</b>".' ,
2323 icon : "↩️" ,
2424 } ,
2525 {
@@ -34,36 +34,56 @@ export const CanvasTooltip = () => {
3434 className = "ms-3 mt-2"
3535 title = {
3636 < div style = { { minWidth : 500 , padding : 4 } } >
37- < div style = { { fontWeight : 600 , marginBottom : 8 , color : '#1677ff' , display : 'flex' , alignItems : 'center' } } >
37+ < div
38+ style = { {
39+ fontWeight : 600 ,
40+ marginBottom : 8 ,
41+ color : "#1677ff" ,
42+ display : "flex" ,
43+ alignItems : "center" ,
44+ } }
45+ >
3846 < InfoCircleOutlined style = { { marginRight : 8 , fontSize : 18 } } />
3947 Canvas Shortcuts
4048 </ div >
4149 < ul style = { { paddingLeft : 18 , margin : 0 } } >
4250 { tooltipSteps . map ( ( step , idx ) => (
43- < li key = { idx } style = { { marginBottom : 6 , display : 'flex' , alignItems : 'center' } } >
44- < span style = { {
45- display : 'inline-block' ,
46- width : 22 ,
47- height : 22 ,
48- background : '#e6f7ff' ,
49- color : '#1677ff' ,
50- borderRadius : '50%' ,
51- textAlign : 'center' ,
52- lineHeight : '22px' ,
53- fontWeight : 700 ,
54- marginRight : 10 ,
55- fontSize : 13 ,
56- border : '1px solid #91d5ff' ,
57- } } > { step . icon } </ span >
51+ < li key = { idx } style = { { marginBottom : 6 , display : "flex" , alignItems : "center" } } >
52+ < span
53+ style = { {
54+ display : "inline-block" ,
55+ width : 22 ,
56+ height : 22 ,
57+ background : "#e6f7ff" ,
58+ color : "#1677ff" ,
59+ borderRadius : "50%" ,
60+ textAlign : "center" ,
61+ lineHeight : "22px" ,
62+ fontWeight : 700 ,
63+ marginRight : 10 ,
64+ fontSize : 13 ,
65+ border : "1px solid #91d5ff" ,
66+ } }
67+ >
68+ { step . icon }
69+ </ span >
5870 < span dangerouslySetInnerHTML = { { __html : step . text } } />
5971 </ li >
6072 ) ) }
6173 </ ul >
6274 </ div >
6375 }
6476 placement = "rightBottom"
65- styles = { { body : { borderRadius : 12 , boxShadow : "0 4px 24px #1677ff22" , width : "500px" } } } >
66- < InfoCircleOutlined style = { { fontSize : 28 , cursor : "pointer" , color : "#1677ff" , filter : 'drop-shadow(0 2px 6px #1677ff44)' } } />
77+ styles = { { body : { borderRadius : 12 , boxShadow : "0 4px 24px #1677ff22" , width : "500px" } } }
78+ >
79+ < InfoCircleOutlined
80+ style = { {
81+ fontSize : 28 ,
82+ cursor : "pointer" ,
83+ color : "#1677ff" ,
84+ filter : "drop-shadow(0 2px 6px #1677ff44)" ,
85+ } }
86+ />
6787 </ Tooltip >
6888 ) ;
6989} ;
0 commit comments