mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 13:38:38 +00:00
Wrap AudioPlayer inside a div
This commit is contained in:
+18
-14
@@ -65,20 +65,24 @@ export default function PreviewAudio({ file }: Props) {
|
||||
<span className='text-center text-destructive'>{error}</span>
|
||||
</div>
|
||||
) : (
|
||||
<AudioPlayer
|
||||
autoPlay={false}
|
||||
layout='stacked-reverse'
|
||||
src={audioSrc}
|
||||
showJumpControls={false}
|
||||
showFilledVolume
|
||||
style={{
|
||||
borderRadius: "var(--radius)",
|
||||
}}
|
||||
onError={(e) => {
|
||||
console.error(e);
|
||||
setError("Could not preview this audio, try downloading the file");
|
||||
}}
|
||||
/>
|
||||
<div className='w-full'>
|
||||
<AudioPlayer
|
||||
autoPlay={false}
|
||||
layout='stacked-reverse'
|
||||
src={audioSrc}
|
||||
showJumpControls={false}
|
||||
showFilledVolume
|
||||
style={{
|
||||
borderRadius: "var(--radius)",
|
||||
}}
|
||||
onError={(e) => {
|
||||
console.error(e);
|
||||
setError(
|
||||
"Could not preview this audio, try downloading the file",
|
||||
);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user