chore: add vertical margin between containers and update changelog

This commit is contained in:
2026-02-23 11:10:00 +00:00
parent b807409f24
commit 46c6294e48
2 changed files with 30 additions and 31 deletions

View File

@@ -17,3 +17,4 @@
- Ran backend tests to verify logic correctness. - Ran backend tests to verify logic correctness.
- Received user request to make the system logs scrollable in the new Web UI. - Received user request to make the system logs scrollable in the new Web UI.
- Updating camera logs container to be scrollable. - Updating camera logs container to be scrollable.
- 2026-02-25 13:49:22: Increased vertical margin (gap) between containers in pubic/mobile-sim.html

View File

@@ -105,15 +105,7 @@
class="w-20 lg:w-64 glass-panel border-r border-white/5 flex-col justify-between hidden h-full"> class="w-20 lg:w-64 glass-panel border-r border-white/5 flex-col justify-between hidden h-full">
<!-- Logo Area --> <!-- Logo Area -->
<div class="p-6 flex items-center justify-center lg:justify-start gap-3 border-b border-white/5"> <div class="p-6 flex items-center justify-center lg:justify-start gap-3 border-b border-white/5">
<div
class="w-8 h-8 rounded-lg bg-blue-600 flex items-center justify-center shadow-lg shadow-blue-600/20 shrink-0">
<svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4 text-white" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z" />
</svg>
</div>
<h1 class="font-bold text-white tracking-wide hidden lg:block">SecureCam</h1>
</div> </div>
<!-- Nav Links --> <!-- Nav Links -->
@@ -272,12 +264,12 @@
</section> </section>
<!-- CAMERA DASHBOARD --> <!-- CAMERA DASHBOARD -->
<section id="screen-home-camera" class="hidden flex-col gap-6 max-w-7xl mx-auto h-full"> <section id="screen-home-camera" class="hidden flex-col gap-10 max-w-7xl mx-auto h-full">
<div class="flex justify-between items-center shrink-0"> <div class="flex justify-between items-center shrink-0">
<h2 class="text-2xl font-bold text-white tracking-tight">Camera Feed (Broadcasting)</h2> <h2 class="text-2xl font-bold text-white tracking-tight">Camera Feed (Broadcasting)</h2>
</div> </div>
<div class="flex-1 flex flex-col lg:flex-row gap-6 min-h-0"> <div class="flex-1 flex flex-col lg:flex-row gap-8 min-h-0">
<!-- Main Player --> <!-- Main Player -->
<div class="flex-1 glass-card rounded-3xl overflow-hidden relative flex flex-col border border-white/10"> <div class="flex-1 glass-card rounded-3xl overflow-hidden relative flex flex-col border border-white/10">
<div id="cameraPreview" class="flex-1 bg-black relative flex items-center justify-center"> <div id="cameraPreview" class="flex-1 bg-black relative flex items-center justify-center">
@@ -336,11 +328,10 @@
</div> </div>
</div> </div>
<div <div class="glass-card p-6 rounded-3xl border border-white/5 h-80 flex flex-col min-h-0 overflow-hidden">
class="glass-card p-6 rounded-3xl border border-white/5 flex-1 flex flex-col min-h-0 overflow-hidden">
<h3 class="text-xs font-bold text-gray-500 uppercase tracking-wider mb-4 shrink-0">System Logs</h3> <h3 class="text-xs font-bold text-gray-500 uppercase tracking-wider mb-4 shrink-0">System Logs</h3>
<div id="cameraLogs" <div id="cameraLogs"
class="flex-1 bg-black/40 rounded-xl p-4 text-xs font-mono text-gray-400 overflow-y-auto border border-white/5"> class="flex-1 min-h-0 bg-black/40 rounded-xl p-4 text-xs font-mono text-gray-400 overflow-y-auto border border-white/5">
<div class="text-gray-600 italic">Awaiting connection...</div> <div class="text-gray-600 italic">Awaiting connection...</div>
</div> </div>
</div> </div>
@@ -349,7 +340,7 @@
</section> </section>
<!-- CLIENT DASHBOARD --> <!-- CLIENT DASHBOARD -->
<section id="screen-home-client" class="hidden flex-col gap-8 max-w-7xl mx-auto h-full"> <section id="screen-home-client" class="hidden flex-col gap-12 max-w-7xl mx-auto h-full">
<div class="flex justify-between items-center"> <div class="flex justify-between items-center">
<h2 class="text-2xl font-bold text-white tracking-tight">Client Dashboard</h2> <h2 class="text-2xl font-bold text-white tracking-tight">Client Dashboard</h2>
@@ -373,18 +364,36 @@
</div> </div>
</div> </div>
<!-- Cameras -> Horizontal List -->
<div class="glass-card rounded-3xl border border-white/5 p-5 shrink-0">
<h3 class="text-xs font-bold text-gray-400 uppercase tracking-wider mb-4">Your Cameras</h3>
<div id="linkedCamerasList" class="flex overflow-x-auto gap-4 pb-2 snap-x">
<!-- Populated by JS -->
<div class="w-full text-center py-6 bg-black/20 rounded-2xl border border-dashed border-white/10">
<p class="text-gray-500 text-sm">No cameras linked yet</p>
</div>
</div>
</div>
<!-- Theater Player Layout --> <!-- Theater Player Layout -->
<div class="flex flex-col xl:flex-row gap-6 flex-1 min-h-0"> <div class="flex flex-col xl:flex-row gap-8 flex-1 min-h-0">
<!-- Stream Viewer --> <!-- Stream Viewer -->
<div <div id="clientStreamViewerWrapper"
class="flex-1 glass-card rounded-3xl overflow-hidden border border-white/10 flex flex-col shadow-xl min-h-[400px]"> class="flex-1 glass-card rounded-3xl overflow-hidden border border-white/10 flex flex-col shadow-xl min-h-[400px] hidden">
<div class="px-5 py-4 border-b border-white/5 bg-black/20 flex justify-between items-center"> <div class="px-5 py-4 border-b border-white/5 bg-black/20 flex justify-between items-center">
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
<span class="w-2 h-2 rounded-full bg-red-500 animate-[pulse_2s_ease-in-out_infinite] hidden" <span class="w-2 h-2 rounded-full bg-red-500 animate-[pulse_2s_ease-in-out_infinite] hidden"
id="clientLiveDot"></span> id="clientLiveDot"></span>
<h3 class="font-medium text-white tracking-wide">Live Feed Viewer</h3> <h3 class="font-medium text-white tracking-wide" id="clientStreamViewerTitle">Live Feed Viewer</h3>
</div> </div>
<button id="closeStreamViewerBtn"
class="btn btn-ghost btn-sm btn-circle text-gray-400 hover:text-white">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div> </div>
<div id="clientStreamContainer" class="flex-1 bg-black relative flex items-center justify-center"> <div id="clientStreamContainer" class="flex-1 bg-black relative flex items-center justify-center">
@@ -405,20 +414,9 @@
</div> </div>
</div> </div>
<!-- Right Sidebar (Linked Cams + Recordings) --> <!-- Right Sidebar (Recordings) -->
<div class="xl:w-96 shrink-0 flex flex-col gap-6 overflow-y-auto pr-2"> <div class="xl:w-96 shrink-0 flex flex-col gap-6 overflow-y-auto pr-2">
<!-- Cameras -->
<div class="glass-card rounded-3xl border border-white/5 p-5">
<h3 class="text-xs font-bold text-gray-400 uppercase tracking-wider mb-4">Your Cameras</h3>
<div id="linkedCamerasList" class="space-y-3">
<!-- Populated by JS -->
<div class="text-center py-10 bg-black/20 rounded-2xl border border-dashed border-white/10">
<p class="text-gray-500 text-sm">No cameras linked yet</p>
</div>
</div>
</div>
<!-- Recordings --> <!-- Recordings -->
<div class="glass-card rounded-3xl border border-white/5 p-5 flex-1"> <div class="glass-card rounded-3xl border border-white/5 p-5 flex-1">
<h3 class="text-xs font-bold text-gray-400 uppercase tracking-wider mb-4">Recent Recordings</h3> <h3 class="text-xs font-bold text-gray-400 uppercase tracking-wider mb-4">Recent Recordings</h3>