File tree Expand file tree Collapse file tree 1 file changed +22
-12
lines changed
apps/frontend/src/components/cursor Expand file tree Collapse file tree 1 file changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export default function Cursor({
2020
2121 return (
2222 < motion . div
23- className = "pointer-events-none absolute left-0 top-0 z-50 h-6 w-6 "
23+ className = "pointer-events-none absolute left-0 top-0 z-50"
2424 initial = { { x, y } }
2525 animate = { { x, y } }
2626 transition = { {
@@ -32,17 +32,27 @@ export default function Cursor({
3232 restSpeed : 0.01 ,
3333 } }
3434 >
35- < svg viewBox = "0 0 94 99" fill = "none" xmlns = "http://www.w3.org/2000/svg" >
36- < path
37- d = "M2.40255 5.31234C1.90848 3.6645 3.58743 2.20312 5.15139 2.91972L90.0649 41.8264C91.7151 42.5825 91.5858 44.9688 89.8637 45.5422L54.7989 57.2186C53.3211 57.7107 52.0926 58.7582 51.3731 60.1397L33.0019 95.4124C32.1726 97.0047 29.8279 96.7826 29.3124 95.063L2.40255 5.31234Z"
38- fill = { color }
39- stroke = "black"
40- strokeWidth = "4"
41- />
42- </ svg >
43- < p className = "absolute px-1" style = { { backgroundColor : color } } >
44- { clientId }
45- </ p >
35+ < div className = "relative" >
36+ < svg
37+ className = "h-6 w-6"
38+ viewBox = "0 0 94 99"
39+ fill = "none"
40+ xmlns = "http://www.w3.org/2000/svg"
41+ >
42+ < path
43+ d = "M2.40255 5.31234C1.90848 3.6645 3.58743 2.20312 5.15139 2.91972L90.0649 41.8264C91.7151 42.5825 91.5858 44.9688 89.8637 45.5422L54.7989 57.2186C53.3211 57.7107 52.0926 58.7582 51.3731 60.1397L33.0019 95.4124C32.1726 97.0047 29.8279 96.7826 29.3124 95.063L2.40255 5.31234Z"
44+ fill = { color }
45+ stroke = "black"
46+ strokeWidth = "4"
47+ />
48+ </ svg >
49+ < div
50+ className = "absolute left-6 top-6 max-w-28 truncate rounded-lg border-[1px] border-black px-2 py-1 text-center text-sm font-semibold shadow-sm"
51+ style = { { backgroundColor : color } }
52+ >
53+ { clientId }
54+ </ div >
55+ </ div >
4656 </ motion . div >
4757 ) ;
4858}
You can’t perform that action at this time.
0 commit comments