Refactor episode cards, footer, podcast hero, player, and subscribe section for improved responsiveness; adjust padding, text sizes, and layout classes
This commit is contained in:
parent
ce5d2d29af
commit
16a13e1d47
5 changed files with 32 additions and 23 deletions
|
@ -24,6 +24,7 @@ export function PodcastPlayer() {
|
|||
useEffect(() => {
|
||||
const audio = audioRef.current;
|
||||
if (!audio) return;
|
||||
audioRef.current?.load();
|
||||
|
||||
const updateTime = () => setCurrentTime(audio.currentTime);
|
||||
const updateDuration = () => setDuration(audio.duration);
|
||||
|
@ -114,7 +115,7 @@ export function PodcastPlayer() {
|
|||
value={[currentTime]}
|
||||
max={duration}
|
||||
step={1}
|
||||
className="w-full"
|
||||
className="w-full mx-2"
|
||||
onValueChange={(value) => {
|
||||
if (audioRef.current) {
|
||||
audioRef.current.currentTime = value[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue