Improve video modal layout for better mobile responsiveness
Adjust the layout of the video modal in `bunny-video-modal.tsx` to be more responsive on smaller screens by modifying margin classes and flex direction. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 074b0e4c-6171-43bd-aa98-f9e04623ca14 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/074b0e4c-6171-43bd-aa98-f9e04623ca14/Sy6XHzr
This commit is contained in:
parent
50172e55f5
commit
0a0248012e
@ -204,7 +204,7 @@ export default function BunnyVideoModal({ video, isOpen, onClose, onEdit, videos
|
||||
{/* Video player area */}
|
||||
<div className="flex-1 flex flex-col gap-3 min-h-0">
|
||||
{/* Main video player */}
|
||||
<div className="w-full max-w-lg ml-8">
|
||||
<div className="w-full max-w-lg ml-8 md:ml-8 ml-0">
|
||||
<div className="relative w-full aspect-video bg-black rounded-lg overflow-hidden">
|
||||
{video.videoUrlIframe ? (
|
||||
<iframe
|
||||
@ -247,10 +247,10 @@ export default function BunnyVideoModal({ video, isOpen, onClose, onEdit, videos
|
||||
</div>
|
||||
|
||||
{/* Video info always below video */}
|
||||
<div className="w-full max-w-lg ml-8">
|
||||
<div className="w-full max-w-lg ml-8 md:ml-8 ml-0">
|
||||
<div className="p-4 bg-gray-800 rounded-lg text-white relative">
|
||||
<div className="flex justify-between items-center mb-3">
|
||||
<h3 className="font-bold text-xl whitespace-normal break-words flex-1 pr-4" data-testid="text-video-title">
|
||||
<div className="flex flex-col md:flex-row md:justify-between md:items-center mb-3 gap-2 md:gap-0">
|
||||
<h3 className="font-bold text-xl whitespace-normal break-words flex-1 md:pr-4" data-testid="text-video-title">
|
||||
{video.title}
|
||||
</h3>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user