Spaces:
Running
Running
Commit ·
79f70cb
1
Parent(s): 518d3d3
Redesign sticker pin to match the overall dark-neutral aesthetic
Browse files68 unmodified lines69707172737475767778798081828384858687888990911 unmodified line9394959697989910010168 unmodified lines>{/*Single Integrated Pin HandleWe use one Handle that covers the same spot and style it as the pin head.This prevents the "double red circle" issue.*/}<Handletype="target"position={Position.Top}id="sticker-target"className="!w-5 !h-5 !bg-red-600 !border-2 !border-primary !shadow-[2px_2px_0px_0px_rgba(0,0,0,0.2)] !z-50 hover:!scale-110 transition-transform !opacity-100 !rounded-full !absolute"style={{top: '-10px',left: '50%',transform: 'translateX(-50%)',backgroundColor: '#dc2626' // Red-600}}>{/* Subtle highlight on the pin head */}<div className="pointer-events-none absolute top-0.5 left-0.5 w-1.5 h-1.5 bg-white/40 rounded-full" /></Handle>{/* Invisible source handle sharing the same space */}1 unmodified linetype="source"position={Position.Top}id="sticker-source"className="!w-5 !h-5 !opacity-0 !z-[51] !pointer-events-none"style={{top: '-10px',left: '50%',transform: 'translateX(-50%)'}}68 unmodified lines6970717273747576777879808182838485868788891 unmodified line91929394959697989968 unmodified lines>{/*Single Integrated Pin HandleStyled as a sleek dark drawing pin to fit the sketchbook aesthetic.*/}<Handletype="target"position={Position.Top}id="sticker-target"className="!w-4 !h-4 !bg-primary !border-2 !border-primary !shadow-[2px_2px_0px_0px_rgba(0,0,0,0.15)] !z-50 hover:!scale-110 transition-transform !opacity-100 !rounded-full !absolute"style={{top: '-8px',left: '50%',transform: 'translateX(-50%)',}}>{/* Metallic/Plastic highlight to give it volume */}<div className="pointer-events-none absolute top-0.5 left-0.5 w-1 h-1 bg-white/20 rounded-full" /></Handle>{/* Invisible source handle sharing the same space */}1 unmodified linetype="source"position={Position.Top}id="sticker-source"className="!w-4 !h-4 !opacity-0 !z-[51] !pointer-events-none"style={{top: '-8px',left: '50%',transform: 'translateX(-50%)'}}
src/features/canvas/components/nodes/CommentNode.jsx+7-9