Krish2606 commited on
Commit
8de9931
·
1 Parent(s): 4942fe6

Optimize dashboard list items on mobile to wrap names and float badges to prevent truncation

Browse files
frontend/css/styles.css CHANGED
@@ -4933,6 +4933,28 @@ tr:hover td {
4933
  .step-connector {
4934
  display: none;
4935
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4936
  }
4937
 
4938
  /* ============================================================================
 
4933
  .step-connector {
4934
  display: none;
4935
  }
4936
+
4937
+ /* Make Dashboard lists readable on narrow screens */
4938
+ .list-item {
4939
+ position: relative;
4940
+ padding-right: 5rem !important;
4941
+ }
4942
+
4943
+ .list-item .badge {
4944
+ position: absolute !important;
4945
+ top: 1.25rem !important;
4946
+ right: 1rem !important;
4947
+ margin: 0 !important;
4948
+ }
4949
+
4950
+ .list-item-arrow {
4951
+ display: none !important;
4952
+ }
4953
+
4954
+ .list-item-title, .list-item-subtitle {
4955
+ white-space: normal !important;
4956
+ word-break: break-word;
4957
+ }
4958
  }
4959
 
4960
  /* ============================================================================
frontend/js/pages/dashboard.js CHANGED
@@ -125,7 +125,7 @@ const DashboardPage = {
125
  <span class="badge ${agent.status === 'active' ? 'active' : 'inactive'}">
126
  ${agent.status}
127
  </span>
128
- <div style="color: var(--gray-400);">→</div>
129
  </a>
130
  `).join('');
131
  }
 
125
  <span class="badge ${agent.status === 'active' ? 'active' : 'inactive'}">
126
  ${agent.status}
127
  </span>
128
+ <div class="list-item-arrow" style="color: var(--gray-400);">→</div>
129
  </a>
130
  `).join('');
131
  }