Minor UI fixes for Shuffle Tools dragging

This commit is contained in:
Frikky
2025-01-09 22:54:35 +01:00
parent 38cb469cbb
commit aab46cca61
2 changed files with 18 additions and 4 deletions
+11 -1
View File
@@ -10021,7 +10021,14 @@ const releaseToConnectLabel = "Release to Connect"
const small = props.small
const actionString = props.action
const [hover, setHover] = React.useState(false);
React.useEffect(() => {
if(app.name === "Shuffle Tools"){
if (app.actions !== undefined && (app.actions === null || app.actions.length === 1)) {
loadAppConfig(app.id, false)
}
}
}, [])
if (app === undefined || app === null) {
return (
<img
@@ -10119,6 +10126,8 @@ const releaseToConnectLabel = "Release to Connect"
}}
key={app.id}
dragging={false}
position={{x: 0, y: 0}}
defaultPosition={{x: 0, y: 0}}
>
<Paper
square
@@ -10533,6 +10542,7 @@ const releaseToConnectLabel = "Release to Connect"
x: 0,
y: 0,
}}
defaultPosition={{x: 0, y: 0}}
>
<div style={{ textDecoration: "none", color: "white", }} onClick={(event) => {
clickedApp(hit)