diff options
Diffstat (limited to 'modern')
-rw-r--r-- | modern/package-lock.json | 14 | ||||
-rw-r--r-- | modern/src/main/StatusCard.js | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/modern/package-lock.json b/modern/package-lock.json index 10e3ee71..7265f0e3 100644 --- a/modern/package-lock.json +++ b/modern/package-lock.json @@ -25,6 +25,7 @@ "moment": "^2.29.4", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-draggable": "^4.4.5", "react-mui-dropzone": "^4.0.6", "react-redux": "^8.0.2", "react-router-dom": "^6.3.0", @@ -16417,6 +16418,19 @@ "react": "^18.2.0" } }, + "node_modules/react-draggable": { + "version": "4.4.5", + "resolved": "https://registry.npmjs.org/react-draggable/-/react-draggable-4.4.5.tgz", + "integrity": "sha512-OMHzJdyJbYTZo4uQE393fHcqqPYsEtkjfMgvCHr6rejT+Ezn4OZbNyGH50vv+SunC1RMvwOTSWkEODQLzw1M9g==", + "dependencies": { + "clsx": "^1.1.1", + "prop-types": "^15.8.1" + }, + "peerDependencies": { + "react": ">= 16.3.0", + "react-dom": ">= 16.3.0" + } + }, "node_modules/react-dropzone": { "version": "10.2.2", "resolved": "https://registry.npmjs.org/react-dropzone/-/react-dropzone-10.2.2.tgz", diff --git a/modern/src/main/StatusCard.js b/modern/src/main/StatusCard.js index f80d9705..5ca45066 100644 --- a/modern/src/main/StatusCard.js +++ b/modern/src/main/StatusCard.js @@ -157,7 +157,7 @@ const StatusCard = ({ deviceId, onClose }) => { <> {device && ( <Draggable - handle={deviceImage ? `.${classes.media}` : `.${classes.header}`} + handle={`.${classes.media}, .${classes.header}`} > <Card elevation={3} className={classes.card}> {deviceImage ? ( |