fix(dashcam): prevent site freeze during import/convert
- _convert_bg now runs in real threading.Thread (not gevent greenlet) so ffmpeg proc.wait() doesn't block gevent event loop - _device_lock released before copy loop; only held for mount/unmount so /api/dash/files and other routes don't block during long copies - Date now shows time (Aug 9, 10:30 PM) on mobile video rows - Spacing added above converting spinner badge Co-authored-by: Copilot <[email protected]>
This commit is contained in:
@@ -115,7 +115,7 @@
|
||||
// Date shown only on mobile (desktop has its own column)
|
||||
const mobileMeta = document.createElement("div");
|
||||
mobileMeta.className = "dash-thumb-meta text-muted";
|
||||
mobileMeta.textContent = new Date(file.modified_at * 1000).toLocaleDateString(undefined, { month: 'short', day: 'numeric' });
|
||||
mobileMeta.textContent = new Date(file.modified_at * 1000).toLocaleString(undefined, { month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit' });
|
||||
preview.appendChild(mobileMeta);
|
||||
// Converting badge shown on mobile inside thumbnail cell
|
||||
if (file.converting) {
|
||||
|
||||
+2
-2
@@ -321,8 +321,8 @@ body {
|
||||
.dash-thumb-name { display: block !important; font-size: .7rem; margin-top: .2rem; }
|
||||
|
||||
/* Date + converting badge under thumbnail (mobile only) */
|
||||
.dash-thumb-meta { display: block; font-size: .65rem; line-height: 1.2; }
|
||||
.dash-thumb-converting { display: inline-block; font-size: .65rem; padding: .1rem .3rem; }
|
||||
.dash-thumb-meta { display: block; font-size: .65rem; line-height: 1.2; margin-top: .15rem; }
|
||||
.dash-thumb-converting { display: inline-block; font-size: .65rem; padding: .1rem .3rem; margin-top: .25rem; }
|
||||
|
||||
/* Icon-only buttons */
|
||||
.btn-icon-mobile .btn-label { display: none; }
|
||||
|
||||
Reference in New Issue
Block a user