Fix few things
This commit is contained in:
11 files changed
+38
-113
No files matched your search
@@ -123,7 +123,6 @@ const PlayButton = ({
|
||||
return result.data;
|
||||
},
|
||||
onSuccess: (item) => {
|
||||
console.log(item);
|
||||
if (audio) {
|
||||
setAudioTracks(item.Items);
|
||||
setAudioUrl(
|
||||
|
||||
@@ -176,9 +176,6 @@ export const ArtistAlbum = ({ user, album, boxProps }) => {
|
||||
justifySelf: "start",
|
||||
}}
|
||||
fontWeight={400}
|
||||
onClick={() => {
|
||||
console.log("Hvnrjn");
|
||||
}}
|
||||
>
|
||||
Name
|
||||
</Typography>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** @format */
|
||||
import PropTypes from "prop-types";
|
||||
|
||||
import React, { useEffect, useState } from "react";
|
||||
import React, { useEffect, useState, useRef } from "react";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import MenuItem from "@mui/material/MenuItem";
|
||||
import Chip from "@mui/material/Chip";
|
||||
@@ -64,6 +64,8 @@ const Hero = ({
|
||||
albumBy,
|
||||
audioPlayButton = false,
|
||||
}) => {
|
||||
const backgroundRef = useRef(null);
|
||||
|
||||
const filterMediaStreamVideo = (source) => {
|
||||
if (source.Type == MediaStreamType.Video) {
|
||||
return true;
|
||||
@@ -108,7 +110,7 @@ const Hero = ({
|
||||
marginBottom: "2em",
|
||||
}}
|
||||
>
|
||||
<div className="hero-backdrop">
|
||||
<div className="hero-backdrop" ref={backgroundRef}>
|
||||
{!!item.ImageBlurHashes.Backdrop && (
|
||||
<>
|
||||
{Object.keys(item.ImageBlurHashes.Backdrop)
|
||||
@@ -591,7 +593,7 @@ const Hero = ({
|
||||
Directed by
|
||||
</Typography>
|
||||
<div className="hero-text-container">
|
||||
{directors.map((director) => (
|
||||
{directors.map((director, index) => (
|
||||
<>
|
||||
<TextLink
|
||||
text={director.Name}
|
||||
|
||||
@@ -33,9 +33,9 @@ const MusicTrack = ({ item, queryKey, userId }) => {
|
||||
: item.Id,
|
||||
"Primary",
|
||||
{
|
||||
quality: 85,
|
||||
fillHeight: 462,
|
||||
fillWidth: 462,
|
||||
quality: 70,
|
||||
fillHeight: 128,
|
||||
fillWidth: 128,
|
||||
},
|
||||
)}
|
||||
style={{
|
||||
|
||||
@@ -172,9 +172,10 @@ const AudioPlayer = () => {
|
||||
};
|
||||
|
||||
return (
|
||||
<AnimatePresence wait>
|
||||
<AnimatePresence>
|
||||
{display && (
|
||||
<motion.div
|
||||
key={display}
|
||||
initial={{
|
||||
transform: "translateY(100%)",
|
||||
}}
|
||||
@@ -187,6 +188,10 @@ const AudioPlayer = () => {
|
||||
13,
|
||||
)} - 10px)`,
|
||||
}}
|
||||
transition={{
|
||||
duration: 0.1,
|
||||
ease: "easeInOut",
|
||||
}}
|
||||
className="audio-player"
|
||||
>
|
||||
<motion.div
|
||||
|
||||
Reference in new issue
Block a user