misc
This commit is contained in:
@@ -1,6 +1,27 @@
|
||||
/* Table and Dark Overrides */
|
||||
.trip-management-container {
|
||||
width: 100%;
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
|
||||
}
|
||||
|
||||
/* Improve DataTable font across headers, cells, paginator, and body */
|
||||
.trip-management-container .p-datatable,
|
||||
.trip-management-container .p-datatable th,
|
||||
.trip-management-container .p-datatable td,
|
||||
.trip-management-container .p-paginator,
|
||||
.trip-management-container .p-datatable .p-datatable-header,
|
||||
.trip-management-container .p-datatable .p-datatable-footer{
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif !important;
|
||||
font-weight: 500 !important;
|
||||
font-size: 0.95rem !important;
|
||||
line-height: 1.25rem !important;
|
||||
}
|
||||
|
||||
/* Keep monospace for any code or ident columns */
|
||||
.trip-management-container .p-datatable td.code,
|
||||
.trip-management-container .p-datatable td.mono {
|
||||
font-family: ui-monospace, "JetBrains Mono", "Fira Code", "Roboto Mono", "Consolas", "Monaco", "Courier New", monospace !important;
|
||||
font-weight: 400 !important;
|
||||
}
|
||||
|
||||
.trip-management-container .table-wrapper {
|
||||
@@ -37,7 +58,9 @@
|
||||
/* Column widths - distribute across table */
|
||||
.trip-management-container .p-datatable-thead > tr > th,
|
||||
.trip-management-container .p-datatable-tbody > tr > td {
|
||||
/* Default: auto distribute */
|
||||
/* Default column distribution: uniform padding and vertical alignment */
|
||||
padding: 0.65rem 0.5rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* ID column - narrow */
|
||||
@@ -252,34 +275,142 @@
|
||||
}
|
||||
|
||||
/* Progress Bar Styles */
|
||||
.progress-bar-container {
|
||||
.rm-progress-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.progress-bar-track {
|
||||
flex: 1;
|
||||
|
||||
.rm-progress-track {
|
||||
position: relative;
|
||||
flex: 1 1 0%;
|
||||
min-width: 0;
|
||||
height: 6px;
|
||||
background-color: rgba(128, 128, 128, 0.2);
|
||||
border-radius: 999px;
|
||||
overflow: hidden;
|
||||
border-radius: 999px; /* rounded track so fill edge is hidden when smaller */
|
||||
overflow: hidden; /* must clip when scaled */
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.progress-bar-track-lg {
|
||||
.rm-progress-track-lg {
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.progress-bar-fill {
|
||||
.rm-progress-fill {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
border-radius: 999px;
|
||||
transition: width 0.3s ease;
|
||||
width: 100% !important; /* full width; we scale via transform to avoid subpixel gaps */
|
||||
transform-origin: left center;
|
||||
transform: scaleX(var(--rm-progress, 0)); /* use custom property (0-1 range) */
|
||||
border-top-left-radius: 999px;
|
||||
border-bottom-left-radius: 999px;
|
||||
transition: transform 0.24s cubic-bezier(0.4,0,0.2,1), border-radius 0.24s;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
right: 0;
|
||||
min-width: 0;
|
||||
will-change: transform;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.progress-bar-text {
|
||||
/* Fix for native audio progress bar (range input) */
|
||||
.audio-progress-range {
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
background: transparent;
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
border-radius: 999px;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.audio-progress-range::-webkit-slider-runnable-track {
|
||||
height: 6px;
|
||||
background: rgba(128, 128, 128, 0.2);
|
||||
border-radius: 999px;
|
||||
}
|
||||
.audio-progress-range::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
background: #2563eb;
|
||||
box-shadow: 0 0 2px rgba(0,0,0,0.2);
|
||||
margin-top: -3px;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
}
|
||||
.audio-progress-range::-moz-range-thumb {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
background: #2563eb;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.audio-progress-range::-ms-thumb {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
background: #2563eb;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.audio-progress-range::-ms-fill-lower {
|
||||
background: #2563eb;
|
||||
border-radius: 999px;
|
||||
}
|
||||
.audio-progress-range::-ms-fill-upper {
|
||||
background: rgba(128, 128, 128, 0.2);
|
||||
border-radius: 999px;
|
||||
}
|
||||
.audio-progress-range::-webkit-slider-thumb {
|
||||
box-shadow: 0 0 2px rgba(0,0,0,0.2);
|
||||
}
|
||||
.audio-progress-range:focus {
|
||||
outline: none;
|
||||
}
|
||||
.audio-progress-range::-webkit-slider-runnable-track {
|
||||
background: linear-gradient(to right, #2563eb 0%, #2563eb var(--progress, 0%), rgba(128,128,128,0.2) var(--progress, 0%), rgba(128,128,128,0.2) 100%);
|
||||
}
|
||||
.audio-progress-range::-moz-range-progress {
|
||||
background-color: #2563eb;
|
||||
border-radius: 999px;
|
||||
}
|
||||
.audio-progress-range::-moz-range-track {
|
||||
background-color: rgba(128, 128, 128, 0.2);
|
||||
border-radius: 999px;
|
||||
}
|
||||
.audio-progress-range::-ms-fill-lower {
|
||||
background-color: #2563eb;
|
||||
border-radius: 999px;
|
||||
}
|
||||
.audio-progress-range::-ms-fill-upper {
|
||||
background-color: rgba(128, 128, 128, 0.2);
|
||||
border-radius: 999px;
|
||||
}
|
||||
.audio-progress-range:focus::-webkit-slider-runnable-track {
|
||||
background: linear-gradient(to right, #2563eb 0%, #2563eb var(--progress, 0%), rgba(128,128,128,0.2) var(--progress, 0%), rgba(128,128,128,0.2) 100%);
|
||||
}
|
||||
.audio-progress-range::-ms-tooltip {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rm-progress-text {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
|
||||
/* Ensure progress styles apply when rendered within a PrimeReact Dialog (portal) */
|
||||
.p-dialog .rm-progress-container{display:flex;align-items:center;width:100%}
|
||||
.p-dialog .rm-progress-track{position:relative;flex:1 1 0%;min-width:0;height:6px;background-color:#80808033;border-radius:999px;overflow:hidden;margin:0!important;padding:0!important}
|
||||
.p-dialog .rm-progress-track-lg{height:10px}
|
||||
.p-dialog .rm-progress-fill{position:absolute;left:0;top:0;height:100%;width:100%!important;transform-origin:left center;transform:scaleX(var(--rm-progress, 0));border-top-left-radius:999px;border-bottom-left-radius:999px;transition:transform .24s cubic-bezier(.4,0,.2,1),border-radius .24s;margin:0!important;padding:0!important;right:0;min-width:0;will-change:transform;box-sizing:border-box}
|
||||
.p-dialog .rm-progress-text{font-size:.75rem;font-weight:600;min-width:2.5rem;text-align:right}
|
||||
min-width: 2.5rem;
|
||||
text-align: right;
|
||||
}
|
||||
@@ -339,17 +470,17 @@
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
.progress-bar-container {
|
||||
.trip-management-container .rm-progress-container {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.progress-bar-track {
|
||||
.trip-management-container .rm-progress-track {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.progress-bar-text {
|
||||
.trip-management-container .rm-progress-text {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
@@ -440,3 +571,147 @@
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
Mobile Card Layout for Request Table
|
||||
======================================== */
|
||||
@media (max-width: 768px) {
|
||||
/* Hide table header on mobile */
|
||||
.trip-management-container .p-datatable-thead {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Convert table to block layout */
|
||||
.trip-management-container .p-datatable-table {
|
||||
display: block !important;
|
||||
table-layout: auto !important;
|
||||
}
|
||||
|
||||
.trip-management-container .p-datatable-tbody {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
/* Each row becomes a card */
|
||||
.trip-management-container .p-datatable-tbody > tr {
|
||||
display: flex !important;
|
||||
flex-wrap: wrap !important;
|
||||
padding: 1rem !important;
|
||||
margin-bottom: 0.75rem !important;
|
||||
border-radius: 0.5rem !important;
|
||||
border: 1px solid rgba(128, 128, 128, 0.3) !important;
|
||||
gap: 0.5rem 1rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
/* Reset column widths */
|
||||
.trip-management-container .p-datatable-tbody > tr > td {
|
||||
width: auto !important;
|
||||
padding: 0.25rem 0 !important;
|
||||
border: none !important;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.35rem;
|
||||
flex: 1 1 48%;
|
||||
min-width: 48%;
|
||||
}
|
||||
|
||||
/* Add labels before each cell */
|
||||
.trip-management-container .p-datatable-tbody > tr > td::before {
|
||||
font-weight: 600;
|
||||
font-size: 0.7rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.025em;
|
||||
color: #9ca3af;
|
||||
min-width: 60px;
|
||||
line-height: 1.1;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* Target takes full width */
|
||||
.trip-management-container .p-datatable-tbody > tr > td:nth-child(2) {
|
||||
width: 100% !important;
|
||||
order: -1;
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
padding-bottom: 0.5rem !important;
|
||||
border-bottom: 1px solid rgba(128, 128, 128, 0.2) !important;
|
||||
margin-bottom: 0.25rem;
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
|
||||
.trip-management-container .p-datatable-tbody > tr > td:nth-child(2)::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ID - small, muted */
|
||||
.trip-management-container .p-datatable-tbody > tr > td:nth-child(1) {
|
||||
font-size: 0.75rem;
|
||||
color: #6b7280;
|
||||
}
|
||||
.trip-management-container .p-datatable-tbody > tr > td:nth-child(1)::before {
|
||||
content: "ID";
|
||||
}
|
||||
|
||||
/* Tracks */
|
||||
.trip-management-container .p-datatable-tbody > tr > td:nth-child(3)::before {
|
||||
content: "Tracks";
|
||||
}
|
||||
|
||||
/* Status */
|
||||
.trip-management-container .p-datatable-tbody > tr > td:nth-child(4)::before {
|
||||
content: "Status";
|
||||
}
|
||||
|
||||
/* Progress - full width */
|
||||
.trip-management-container .p-datatable-tbody > tr > td:nth-child(5) {
|
||||
width: 100% !important;
|
||||
order: 10;
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
.trip-management-container .p-datatable-tbody > tr > td:nth-child(5)::before {
|
||||
content: "Progress";
|
||||
}
|
||||
|
||||
/* Quality */
|
||||
.trip-management-container .p-datatable-tbody > tr > td:nth-child(6)::before {
|
||||
content: "Quality";
|
||||
}
|
||||
|
||||
/* Tarball - full width */
|
||||
.trip-management-container .p-datatable-tbody > tr > td:nth-child(7) {
|
||||
width: 100% !important;
|
||||
order: 11;
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
.trip-management-container .p-datatable-tbody > tr > td:nth-child(7)::before {
|
||||
content: "Download";
|
||||
}
|
||||
|
||||
/* Progress bar adjustments for mobile */
|
||||
.trip-management-container .rm-progress-container {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* Skeleton adjustments for mobile */
|
||||
.table-skeleton .skeleton-row {
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
padding: 1rem;
|
||||
margin-bottom: 0.75rem;
|
||||
border-radius: 0.5rem;
|
||||
border: 1px solid rgba(128, 128, 128, 0.2);
|
||||
}
|
||||
|
||||
.table-skeleton .skeleton-cell {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.table-skeleton .skeleton-bar {
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.table-skeleton .skeleton-cell:first-child .skeleton-bar {
|
||||
width: 100%;
|
||||
height: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user