Skip to content

Commit 7fb7704

Browse files
committed
Fix gradient
1 parent c074286 commit 7fb7704

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@stronk-tech/react-librespot-controller",
33
"description": "`go-librespot` squeezebox-alike web frontend for small touchscreens",
4-
"version": "0.0.25",
4+
"version": "0.0.26",
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.esm.js",
77
"files": [

src/components/Album/AlbumCard.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ const AlbumCard = ({ title, subtitle, image, isStopped }) => {
8080

8181
// On inital render set an interval to rotate the image
8282
useEffect(() => {
83-
const interval = setInterval(setRotationDegree, rotationUpdateInterval);
83+
const interval = setInterval(() => {
84+
const currentTime = new Date().getTime();
85+
setRotationDegree((currentTime / rotationDenominator) % 360);
86+
}, rotationUpdateInterval);
8487
return () => clearInterval(interval);
8588
}, []);
8689

0 commit comments

Comments
 (0)