fix: dashcam mobile shows filename, RPM/fuel/throttle don't append unit when disconnected
- yaris.css: split mobile rules by list ID — video-list shows thumb+actions, dashcam-file-list shows dash-col-file+actions; thead display:none !important - yaris.js: check data !== '-' before appending rpm/°C/% units so disconnected state shows — instead of '- rpm' Co-authored-by: Copilot <[email protected]>
This commit is contained in:
+15
-8
@@ -280,7 +280,7 @@ body {
|
||||
@media (max-width: 575.98px) {
|
||||
/* Hide table header */
|
||||
#local-video-list thead,
|
||||
#dashcam-file-list thead { display: none; }
|
||||
#dashcam-file-list thead { display: none !important; }
|
||||
|
||||
/* Row becomes flex */
|
||||
.dash-row { display: flex !important; align-items: center; gap: .5rem;
|
||||
@@ -289,19 +289,26 @@ body {
|
||||
/* Hide all cells by default */
|
||||
.dash-row > td { display: none !important; }
|
||||
|
||||
/* Show only first cell (thumb or checkbox) and actions */
|
||||
.dash-row > td:first-child,
|
||||
.dash-row > .dash-actions-td { display: flex !important; align-items: center; }
|
||||
/* local-video-list: show thumb cell + actions */
|
||||
#local-video-list .dash-row > td:first-child,
|
||||
#local-video-list .dash-row > .dash-actions-td { display: flex !important; align-items: center; }
|
||||
#local-video-list .dash-row > td:first-child { flex: 1; min-width: 0; }
|
||||
|
||||
/* First cell takes remaining space, no overflow */
|
||||
.dash-row > td:first-child { flex: 1; min-width: 0; }
|
||||
/* dashcam-file-list: show filename cell + actions (no thumbnail) */
|
||||
#dashcam-file-list .dash-row > .dash-col-file,
|
||||
#dashcam-file-list .dash-row > .dash-actions-td { display: flex !important; align-items: center; }
|
||||
#dashcam-file-list .dash-row > .dash-col-file {
|
||||
flex: 1; min-width: 0;
|
||||
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||||
font-size: .8rem;
|
||||
}
|
||||
|
||||
/* Actions never shrink */
|
||||
.dash-row > .dash-actions-td { flex-shrink: 0; }
|
||||
|
||||
/* Thumbnail sizing — override any inline style */
|
||||
/* Thumbnail sizing */
|
||||
.dash-thumb-td { width: 5rem !important; padding: 0.2rem !important; }
|
||||
.local-video-thumbnail { width: 4.5rem !important; }
|
||||
.local-video-thumbnail { width: 4.5rem !important; height: auto !important; }
|
||||
|
||||
/* Filename under thumbnail */
|
||||
.dash-thumb-name { display: block !important; font-size: .7rem; margin-top: .2rem; }
|
||||
|
||||
Reference in New Issue
Block a user