diff --git a/package.json b/package.json index eabbc1c..e6d45e1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jellyplayer", "private": true, - "version": "0.0.1", + "version": "0.0.3-dev", "type": "module", "scripts": { "dev": "vite", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index fb30deb..9c329a6 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jellyplayer" -version = "0.0.1" +version = "0.0.3-dev" description = "A Modern Jellyfin Client" authors = ["prayag17", "JellyPlayer contributors (https://github.com/prayag17/JellyPlayer/graphs/contributors)"] license = "GPL-3.0-only" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 929f1e1..f653ac3 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "JellyPlayer", - "version": "0.0.1" + "version": "0.0.3-dev" }, "tauri": { "allowlist": { diff --git a/src/components/carousel/carousel.scss b/src/components/carousel/carousel.scss index 6262ee3..6d4d3be 100644 --- a/src/components/carousel/carousel.scss +++ b/src/components/carousel/carousel.scss @@ -17,14 +17,15 @@ } } &-indicator { - height: 2px; + height: 3px; width: 100%; border-radius: 10px; transition: background $transition-time-fast, height $transition-time-fast; + background: rgb(255 255 255 / 0.5); &:hover { cursor: pointer; - height: 5px; + height: 6px; background: rgb(255 255 255 / 0.8) !important; } &-container { @@ -38,7 +39,8 @@ justify-content: center; } &.active { - height: 5px; + height: 6px; + background: white !important; } } } diff --git a/src/components/carousel/index.jsx b/src/components/carousel/index.jsx index 65ead4f..bbfa5fa 100644 --- a/src/components/carousel/index.jsx +++ b/src/components/carousel/index.jsx @@ -30,6 +30,10 @@ const Carousel = ({ content, onChange }) => { { + if (currentSlide == 0) { + setDirection("left"); + setCurrentSlide(content.length - 1); + } if (currentSlide > 0) { setDirection("left"); setCurrentSlide((init) => init - 1); @@ -38,7 +42,7 @@ const Carousel = ({ content, onChange }) => { sx={{ background: " rgb(200 200 200 / 0.05)", }} - disabled={currentSlide == 0} + // disabled={currentSlide == 0} >
arrow_left
@@ -50,7 +54,6 @@ const Carousel = ({ content, onChange }) => { exit={{ opacity: 0 }} transition={{ duration: 0.25, - ease: "easeInOut", }} drag={"x"} dragConstraints={{ left: 0, right: 0 }} @@ -83,12 +86,15 @@ const Carousel = ({ content, onChange }) => { { - if (currentSlide < content.length - 1) { + if (currentSlide == content.length - 1) { + setDirection("right"); + setCurrentSlide(0); + } else if (currentSlide < content.length - 1) { setDirection("right"); setCurrentSlide((init) => init + 1); } }} - disabled={currentSlide == content.length - 1} + // disabled={currentSlide == content.length - 1} sx={{ background: " rgb(200 200 200 / 0.05)", }} @@ -104,12 +110,6 @@ const Carousel = ({ content, onChange }) => { : "carousel-indicator" } key={index} - style={{ - background: - currentSlide == index - ? "white" - : "rgb(255 255 255 / 0.5)", - }} onClick={() => { if (currentSlide > index) { setDirection("left");