diff --git a/src/App.jsx b/src/App.jsx index 0fccbe6..888171a 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -476,7 +476,7 @@ function App() { - + ); diff --git a/src/components/appBar/appBar.jsx b/src/components/appBar/appBar.jsx index d600813..cf035ce 100644 --- a/src/components/appBar/appBar.jsx +++ b/src/components/appBar/appBar.jsx @@ -123,6 +123,7 @@ export const AppBar = () => { style={{ backgroundColor: "transparent", paddingRight: "0 !important", + width: "fit-content", }} className={trigger ? "appBar backdropVisible" : "appBar"} elevation={0} @@ -130,133 +131,106 @@ export const AppBar = () => { -
navigate(-1)} + disabled={!backButtonVisible} > - + arrow_back +
+ + + navigate("/search")}> +
+ search +
+
+ navigate("/favorite")}> +
+ favorite +
+
+ + {user.isSuccess && + (user.data.PrimaryImageTag == undefined ? ( + + + + ) : ( + + + + ))} + + + navigate("/settings")} + disabled > -
- menu -
- - navigate(-1)} - sx={{ - transition: "transform 0.2s", - transform: backButtonVisible - ? "scale(1)" - : "scale(0)", - transformOrigin: "left", - ml: 2, + +
+ settings +
+
+ Settings +
+ navigate("/about")} + disabled + > + +
+ info +
+
+ About +
+ + +
+ logout +
+
+ Logout +
+ { + await delServer(); + await delUser(); + await relaunch(); }} > -
- arrow_back -
- - -
- navigate("/search")}> -
- search -
-
- navigate("/favorite")}> -
- favorite -
-
- - {user.isSuccess && - (user.data.PrimaryImageTag == - undefined ? ( - - - - ) : ( - - - - ))} - - - navigate("/settings")} - disabled - > - -
- settings -
-
- Settings -
- navigate("/about")} - disabled - > - -
- info -
-
- About -
- - -
- logout -
-
- Logout -
- { - await delServer(); - await delUser(); - await relaunch(); - }} - > - -
- delete -
-
- Remove Server -
-
-
+ +
+ delete +
+
+ Remove Server +
+
); diff --git a/src/components/appBar/appBar.module.scss b/src/components/appBar/appBar.module.scss index 220ec68..eccac5b 100644 --- a/src/components/appBar/appBar.module.scss +++ b/src/components/appBar/appBar.module.scss @@ -1,12 +1,15 @@ /** @format */ .appBar { + top: 8px !important; + right: 8px !important; + border-radius: 10000px; transition: background-color $transition-time-fast, backdrop-filter $transition-time-fast, box-shadow $transition-time-default !important; &.backdropVisible { - background-color: $clr-background-dark-opacity-0_8 !important; - backdrop-filter: blur(30px); + background-color: rgb(0 0 0 / 0.6) !important; + backdrop-filter: blur(10px); } &-avatar { background: $clr-gradient-dark; diff --git a/src/components/carousel/index.jsx b/src/components/carousel/index.jsx index 24c9cd7..76d21b3 100644 --- a/src/components/carousel/index.jsx +++ b/src/components/carousel/index.jsx @@ -40,7 +40,7 @@ const Carousel = ({ content, onChange }) => { }} disabled={currentSlide == 0} > - +
arrow_left
{ background: " rgb(200 200 200 / 0.05)", }} > - +
arrow_right
{content.map((item, index) => ( diff --git a/src/components/menu/sidemenu.jsx b/src/components/menu/sidemenu.jsx index 1722b16..d05c546 100644 --- a/src/components/menu/sidemenu.jsx +++ b/src/components/menu/sidemenu.jsx @@ -113,6 +113,10 @@ export const SideMenu = () => { state.setOpen, ]); + const handleDrawerOpen = () => { + setDrawerOpen(true); + }; + if (!display) { return <>; } @@ -143,7 +147,17 @@ export const SideMenu = () => { sx={{ justifyContent: "center", }} - > + > + +
+ menu +
+
+
{libraries.isPending ? ( <> @@ -236,10 +250,13 @@ export const SideMenu = () => { }} > setDrawerOpen(false)}> - +
+ close +
+ {libraries.isPending ? ( <> { ) : ( <> + + + + +
+ home +
+
+ + Home + +
+
+
{libraries.data.Items.map( (library, index) => { return ( @@ -265,6 +326,9 @@ export const SideMenu = () => { { mr: 2, }} > - { - MediaCollectionTypeIconCollection[ - library - .CollectionType - ] - } + {getTypeIcon( + library.CollectionType, + )} { @@ -313,43 +374,6 @@ export const SideMenu = () => {
- - - - - - - - Home - - - - { mr: 2, }} > - +
+ logout +
Logout diff --git a/src/components/menu/sidemenu.module.scss b/src/components/menu/sidemenu.module.scss index 5a58b2f..cc8f806 100644 --- a/src/components/menu/sidemenu.module.scss +++ b/src/components/menu/sidemenu.module.scss @@ -35,8 +35,6 @@ transform: scaleX(1); } .sidemenu-item-text { - max-height: 1.6em; - // transform: scaleY(1); opacity: 1; } .material-symbols-rounded { @@ -46,11 +44,10 @@ } &-text { - // transform: scaleY(0); - transform-origin: top; transition: max-height 0.5s; - max-height: 0; transition-delay: 0.05s; + + font-size: 0.7em !important; } &-icon { diff --git a/src/components/playback/audioPlayer/index.jsx b/src/components/playback/audioPlayer/index.jsx index 6b31e2b..e4aaac4 100644 --- a/src/components/playback/audioPlayer/index.jsx +++ b/src/components/playback/audioPlayer/index.jsx @@ -286,7 +286,9 @@ const AudioPlayer = () => { onClick={handlePrevious} disabled={currentTrack == 0} > - +
+ skip_previous +
{ size="small" onClick={handlePlayPause} > - {playing ? ( - - ) : ( - - )} +
+ {playing + ? "pause" + : "play_arrow"} +
{ tracks.length - 1 == currentTrack } > - +
+ skip_next +
{ - +
+ queue_music +
{ setIsMuted(!isMuted); }} > - {isMuted ? ( - - ) : ( - - )} +
+ {isMuted ? "volume_mute" : "volume_up"} +
{ }} /> - +
+ close +
diff --git a/src/routes/player/videoPlayer.jsx b/src/routes/player/videoPlayer.jsx index 55e7102..701fc8b 100644 --- a/src/routes/player/videoPlayer.jsx +++ b/src/routes/player/videoPlayer.jsx @@ -596,7 +596,12 @@ export const VideoPlayer = () => { gap: "2em", }} > - +
+ {isMuted ? "volume_mute" : "volume_up"} +
{ : true } > - +
+ skip_previous +
@@ -749,12 +756,20 @@ export const VideoPlayer = () => { ) } > - +
+ fast_rewind +
setIsPlaying(!isPlaying)} + onClick={() => + setIsPlaying((state) => !state) + } > - {isPlaying ? : } +
+ {isPlaying + ? "pause" + : "play_arrow"} +
@@ -764,7 +779,9 @@ export const VideoPlayer = () => { ) } > - +
+ fast_forward +
{ : true } > - +
+ skip_next +
{endsAt(itemDuration - currentTime)} @@ -848,20 +867,24 @@ export const VideoPlayer = () => { ) } > - +
+ pace +
setIsMuted(!isMuted)} + onClick={() => + setIsMuted((state) => !state) + } > - {isMuted ? ( - - ) : ( - - )} +
+ {isMuted + ? "volume_mute" + : "volume_up"} +
{ } disabled > - +
+ settings +
{ setIsPIP(!isPIP); }} > - +
+ picture_in_picture_alt +
{ @@ -947,11 +974,11 @@ export const VideoPlayer = () => { setAppFullScreen(!fstate); }} > - {appFullscreen ? ( - - ) : ( - - )} +
+ {appFullscreen + ? "fullscreen_exit" + : "fullscreen"} +