This commit is contained in:
[Valentino Heman Budiarto] 2026-08-24 18:07:25 +07:00
parent cd67c545df
commit 08fa4324d9

View File

@ -136,9 +136,9 @@ export default function RobotDashboard() {
<span className="w-3 h-3 rounded-full bg-red-500 animate-pulse"></span> <span className="w-3 h-3 rounded-full bg-red-500 animate-pulse"></span>
Live Feed Live Feed
</h2> </h2>
<div className="aspect-video bg-black rounded-lg overflow-hidden border border-gray-900 relative">
{/* Ubah aspect-video menjadi aspect-[4/3] jika lensamu berformat 4:3. Biarkan aspect-video jika 16:9. */} {/* --- CONTAINER KAMERA YANG SUDAH DIPERBAIKI --- */}
<div className="aspect-[4/3] md:aspect-video w-full bg-black rounded-lg overflow-hidden border border-gray-900 relative"> <div className="aspect-4/3 md:aspect-video w-full bg-black rounded-lg overflow-hidden border border-gray-900 relative">
{/* eslint-disable-next-line @next/next/no-img-element */} {/* eslint-disable-next-line @next/next/no-img-element */}
<img <img
src={streamUrl} src={streamUrl}
@ -154,6 +154,8 @@ export default function RobotDashboard() {
}} }}
/> />
</div> </div>
{/* ---------------------------------------------- */}
</div> </div>
<div className="bg-gray-800 rounded-xl p-4 border border-gray-700 shadow-xl flex flex-col"> <div className="bg-gray-800 rounded-xl p-4 border border-gray-700 shadow-xl flex flex-col">