Subh775 commited on
Commit
c2aec5f
·
1 Parent(s): 87983b9

infor icon readability

Browse files
Files changed (1) hide show
  1. frontend/vehicles.html +41 -3
frontend/vehicles.html CHANGED
@@ -243,8 +243,36 @@
243
  }
244
 
245
  .s-row.disabled {
246
- opacity: 0.7 !important;
 
 
 
 
 
 
247
  pointer-events: none !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
  }
249
 
250
  #btn-start-processing {
@@ -1220,10 +1248,20 @@
1220
  }
1221
 
1222
  function lockSettings() {
1223
- // Disable critical param rows
1224
  document.querySelectorAll('#settings-params .s-row').forEach(row => {
1225
  const p = row.dataset.param;
1226
- if (p && p !== 'palette') row.classList.add('disabled');
 
 
 
 
 
 
 
 
 
 
1227
  });
1228
  // Hide start button
1229
  const wrap = document.getElementById('settings-start-wrap');
 
243
  }
244
 
245
  .s-row.disabled {
246
+ opacity: 0.65 !important;
247
+ }
248
+
249
+ .s-row.disabled .s-stepper,
250
+ .s-row.disabled .custom-select,
251
+ .s-row.disabled .toggle-track,
252
+ .s-row.disabled .chip-container {
253
  pointer-events: none !important;
254
+ opacity: 0.5 !important;
255
+ }
256
+
257
+ .s-row.disabled .info-wrap {
258
+ pointer-events: auto !important;
259
+ opacity: 1 !important;
260
+ }
261
+
262
+ .lock-badge {
263
+ display: inline-flex;
264
+ align-items: center;
265
+ gap: 4px;
266
+ font-size: 9px;
267
+ font-weight: 700;
268
+ color: #666;
269
+ background: #1a1a1a;
270
+ border: 1px solid #2a2a2a;
271
+ border-radius: 4px;
272
+ padding: 2px 6px;
273
+ margin-left: 8px;
274
+ text-transform: uppercase;
275
+ letter-spacing: 0.05em;
276
  }
277
 
278
  #btn-start-processing {
 
1248
  }
1249
 
1250
  function lockSettings() {
1251
+ // Disable critical param rows and add lock badge
1252
  document.querySelectorAll('#settings-params .s-row').forEach(row => {
1253
  const p = row.dataset.param;
1254
+ if (p && p !== 'palette') {
1255
+ row.classList.add('disabled');
1256
+ // Add lock badge next to the label if not already present
1257
+ const label = row.querySelector('.text-xs.font-semibold');
1258
+ if (label && !label.querySelector('.lock-badge')) {
1259
+ const badge = document.createElement('span');
1260
+ badge.className = 'lock-badge';
1261
+ badge.innerHTML = '<i class="fa-solid fa-lock" style="font-size:8px"></i> Locked';
1262
+ label.appendChild(badge);
1263
+ }
1264
+ }
1265
  });
1266
  // Hide start button
1267
  const wrap = document.getElementById('settings-start-wrap');