Update version to 0.0.3-dev

This commit is contained in:
Prayag Prajapati committed 2023-12-30 18:38:37 +05:30
1 parent e397d0cf58
commit da524107f0
5 files changed
+18 -16

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "jellyplayer",
"private": true,
"version": "0.0.1",
"version": "0.0.3-dev",
"type": "module",
"scripts": {
"dev": "vite",
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -8,7 +8,7 @@
},
"package": {
"productName": "JellyPlayer",
"version": "0.0.1"
"version": "0.0.3-dev"
},
"tauri": {
"allowlist": {
+5 -3
View File
@@ -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;
}
}
}
+10 -10
View File
@@ -30,6 +30,10 @@ const Carousel = ({ content, onChange }) => {
<IconButton
className="carousel-button left"
onClick={() => {
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}
>
<div className="material-symbols-rounded">arrow_left</div>
</IconButton>
@@ -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 }) => {
<IconButton
className="carousel-button right"
onClick={() => {
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");