Skip to content

Commit d571d4f

Browse files
committed
Fixed issue with header in Detailed Data
1 parent e0515d1 commit d571d4f

File tree

2 files changed

+50
-34
lines changed

2 files changed

+50
-34
lines changed

docs/index.html

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -179,30 +179,28 @@ <h2 class="text-lg font-semibold mb-4">URL Status Comparison</h2>
179179
<div class="bg-white p-4 rounded-lg shadow mb-6">
180180
<div class="flex justify-between items-center mb-4">
181181
<h2 class="text-lg font-semibold">Detailed Data</h2>
182-
<button id="exportCSV" class="bg-green-600 hover:bg-green-500 text-white px-3 py-1 rounded"> Export CSV </button>
182+
<button id="exportCSV" class="bg-green-600 hover:bg-green-500 text-white px-3 py-1 rounded">Export CSV</button>
183183
</div>
184184
<div class="table-container">
185185
<table id="dataTable" class="min-w-full divide-y divide-gray-200">
186-
<thead class="bg-gray-50 sticky top-0">
186+
<thead>
187187
<tr>
188-
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Case #</th>
189-
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Found On</th>
190-
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Username</th>
191-
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Attack Method</th>
192-
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Target</th>
193-
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
194-
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
188+
<th>Case #</th>
189+
<th>Found On</th>
190+
<th>Username</th>
191+
<th>Attack Method</th>
192+
<th>Target</th>
193+
<th>Status</th>
194+
<th>Actions</th>
195195
</tr>
196196
</thead>
197-
<tbody id="tableBody" class="bg-white divide-y divide-gray-200">
197+
<tbody id="tableBody">
198198
<!-- Table rows will be inserted here -->
199199
</tbody>
200200
</table>
201201
</div>
202202
<div class="mt-4 flex justify-between items-center">
203-
<div>
204-
<span id="tableInfo" class="text-sm text-gray-600">Showing 0 of 0 entries</span>
205-
</div>
203+
<span id="tableInfo" class="text-sm text-gray-600">Showing 0 of 0 entries</span>
206204
<div class="pagination-controls">
207205
<button id="prevPage" class="prev-page">Previous</button>
208206
<button id="nextPage" class="next-page">Next</button>

docs/styles.css

Lines changed: 39 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -188,28 +188,44 @@ body.bg-gray-900 #activeUrlsStatus:contains("Critical risk") {
188188
}
189189

190190
/* Table styles */
191+
table {
192+
width: 100%;
193+
border-collapse: collapse;
194+
}
195+
196+
/* Table rows */
197+
table tbody tr {
198+
border-bottom: 1px solid #e5e7eb;
199+
}
200+
191201
.table-container {
192202
max-height: 400px;
193203
overflow-y: auto;
204+
position: relative;
194205
border-radius: 0.375rem;
195206
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
196207
}
197208

209+
table thead {
210+
position: sticky;
211+
top: 0;
212+
z-index: 10;
213+
background-color: #f9fafb;
214+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
215+
}
216+
198217
.table-container::-webkit-scrollbar {
199-
width: 10px;
200-
height: 10px;
218+
width: 8px;
201219
}
202220

203221
.table-container::-webkit-scrollbar-track {
204222
background: #f3f4f6;
205223
border-radius: 6px;
206-
margin: 1px;
207224
}
208225

209226
.table-container::-webkit-scrollbar-thumb {
210227
background: #9ca3af;
211228
border-radius: 6px;
212-
border: 2px solid #f3f4f6;
213229
}
214230

215231
.table-container::-webkit-scrollbar-thumb:hover {
@@ -240,10 +256,12 @@ table {
240256
}
241257

242258
table th {
243-
position: sticky;
244-
top: 0;
245-
z-index: 10;
246-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
259+
padding: 12px;
260+
text-align: left;
261+
font-size: 12px;
262+
font-weight: 600;
263+
color: #4b5563;
264+
background-color: #f3f4f6;
247265
}
248266

249267
/* Fixed column widths */
@@ -416,42 +434,42 @@ select {
416434
}
417435

418436
#detailModal table td {
419-
word-break: break-word;
420-
vertical-align: top;
437+
word-break: break-word;
438+
vertical-align: top;
421439
}
422440

423441
#detailModal .url-cell {
424-
max-width: 250px;
425-
overflow-wrap: break-word;
426-
word-wrap: break-word;
442+
max-width: 250px;
443+
overflow-wrap: break-word;
444+
word-wrap: break-word;
427445
}
428446

429447
#detailModal .domain-cell {
430-
max-width: 150px;
431-
overflow: hidden;
432-
text-overflow: ellipsis;
433-
white-space: nowrap;
448+
max-width: 150px;
449+
overflow: hidden;
450+
text-overflow: ellipsis;
451+
white-space: nowrap;
434452
}
435453

436454
/* Ensure proper column width distribution */
437455
#detailModal table th:nth-child(1),
438456
#detailModal table td:nth-child(1) {
439-
width: 100px;
457+
width: 100px;
440458
}
441459

442460
#detailModal table th:nth-child(2),
443461
#detailModal table td:nth-child(2) {
444-
width: 250px;
462+
width: 250px;
445463
}
446464

447465
#detailModal table th:nth-child(3),
448466
#detailModal table td:nth-child(3) {
449-
width: 150px;
467+
width: 150px;
450468
}
451469

452470
#detailModal table th:nth-child(4),
453471
#detailModal table td:nth-child(4) {
454-
width: 100px;
472+
width: 100px;
455473
}
456474

457475
/* Button styles */

0 commit comments

Comments
 (0)