Improve video modal layout and text display for better viewing

Adjusted flex properties in `bunny-video-modal.tsx` to ensure proper rendering of the video player and sidebar. Modified text display for video titles to allow for normal wrapping and breaking of long words, preventing content truncation.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/ahY6QGR
This commit is contained in:
sebastjanartic 2025-08-28 20:08:36 +00:00
parent bc85481929
commit 19c1358391

View File

@ -228,7 +228,7 @@ export default function BunnyVideoModal({ video, isOpen, onClose, onEdit }: Bunn
</div>
{/* Video player area */}
<div className="flex-1 flex flex-col lg:flex-row gap-4">
<div className="flex-1 flex flex-col lg:flex-row gap-4 min-h-0">
{/* Main video player */}
<div className="flex-1">
<div className="relative w-full h-0 pb-[56.25%] bg-black rounded-lg overflow-hidden">
@ -251,9 +251,9 @@ export default function BunnyVideoModal({ video, isOpen, onClose, onEdit }: Bunn
</div>
{/* Video info sidebar */}
<div className="lg:w-80 space-y-4">
<div className="p-4 bg-gray-800 rounded-lg text-white">
<h3 className="font-bold text-lg mb-2" data-testid="text-video-title">
<div className="lg:w-80 lg:min-w-80 space-y-4 overflow-y-auto">
<div className="p-4 bg-gray-800 rounded-lg text-white max-h-none overflow-visible">
<h3 className="font-bold text-lg mb-2 whitespace-normal break-words" data-testid="text-video-title">
{video.title}
</h3>