Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.
TypeScript clipboardclipboard-managerdesktop-appdrag-and-dropelectronopen-sourceproductivityproductivity-toolwindows
fix(ui): open and close the shelf like a system sheet
Deepender2518670a0f6daf
diff --git a/src/components/Panel.tsx b/src/components/Panel.tsxindex 9e87eec..0bfbb83 100644--- a/src/components/Panel.tsx+++ b/src/components/Panel.tsx@@ -204,11 +204,19 @@ export function Panel() {let containerClass = 'blade-container'if (isRight) containerClass += ' blade-right'+ const reduceMotion = !!settings.reduceMotion+ const bounceOpen = !!settings.bounceAnimation+ const clipTransition = reduceMotion+ ? 'clip-path 0.01s linear'+ : bounceOpen+ ? 'clip-path 0.44s cubic-bezier(0.175, 0.885, 0.32, 1.08)'+ : 'clip-path 0.32s cubic-bezier(0.22, 1, 0.36, 1)'+const containerStyle: Record<string, unknown> = {position: 'absolute',zIndex: 10,pointerEvents: open ? 'auto' : 'none',- transition: 'clip-path 0.44s cubic-bezier(0.175, 0.885, 0.32, 1.08)'+ transition: clipTransition}let originX = 0@@ -260,29 +268,25 @@ export function Panel() {<CopyIndicatorCurve /><motion.divclassName={containerClass}- initial={{ scaleX: 0.93, scaleY: 0.96, opacity: 0.98 }}+ initial={false}onDragEnter={onDragEnter}onDragOver={onDragOver}onDragLeave={onDragLeave}onDrop={onDrop}style={containerStyle}animate={- open- ? { scaleX: 1, scaleY: 1, opacity: 1 }- : { scaleX: 0.96, scaleY: 0.97, opacity: 0.98 }+ bounceOpen && !reduceMotion+ ? open+ ? { scaleX: 1, scaleY: 1, opacity: 1 }+ : { scaleX: 0.97, scaleY: 0.98, opacity: 1 }+ : { scaleX: 1, scaleY: 1, opacity: 1 }}transition={- open- ? {- scaleX: { duration: 0.28, ease: [0.16, 1, 0.3, 1] },- scaleY: { duration: 0.28, ease: [0.16, 1, 0.3, 1] },- opacity: { duration: 0.16, ease: 'easeOut' }- }- : {- scaleX: { duration: 0.28, ease: [0.22, 1, 0.36, 1] },- scaleY: { duration: 0.28, ease: [0.22, 1, 0.36, 1] },- opacity: { duration: 0.24, ease: [0.22, 1, 0.36, 1] }- }+ reduceMotion+ ? { duration: 0.01 }+ : bounceOpen+ ? { duration: 0.32, ease: [0.16, 1, 0.3, 1] }+ : { duration: 0.32, ease: [0.22, 1, 0.36, 1] }}>{/* Edge Location Hint Beacon (Ultra-subtle fast hairline pulse when touching edge at wrong position) */}diff --git a/src/styles/panel.css b/src/styles/panel.cssindex 32686d7..74e27e0 100644--- a/src/styles/panel.css+++ b/src/styles/panel.css@@ -89,7 +89,7 @@velocity that decelerates to zero, giving the panel a crisp "snapping open"feel without overshoot or bounce. 0.28s matches Framer Motion's exit curve 1-to-1. */.blade-container {- transition: clip-path 0.28s cubic-bezier(0.22, 1, 0.36, 1);+ transition: clip-path 0.32s cubic-bezier(0.22, 1, 0.36, 1);}/* Parent container solid block extension to prevent screen edge blur transparency */