Skip to content

Commit b421df5

Browse files
authored
ds verifier table (#2649)
1 parent ad39038 commit b421df5

File tree

2 files changed

+495
-143
lines changed

2 files changed

+495
-143
lines changed

src/features/feeds/components/Tables.module.css

Lines changed: 301 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@
6565
margin-bottom: 4px;
6666
}
6767

68-
.assetName {
69-
min-width: 150px;
70-
}
71-
7268
.assetAddress {
7369
display: flex;
7470
align-items: center;
@@ -134,10 +130,6 @@
134130
margin: 0;
135131
}
136132

137-
.label {
138-
text-align: left;
139-
}
140-
141133
.pagination {
142134
display: flex;
143135
margin: 8px 0px 0px;
@@ -204,6 +196,7 @@
204196
background: var(--active-background);
205197
}
206198

199+
/* Context 1: card header info */
207200
.networkInfo {
208201
display: flex;
209202
align-items: center;
@@ -257,6 +250,7 @@
257250
text-decoration: underline;
258251
}
259252

253+
/* Generic table tweaks (once) */
260254
.table td {
261255
text-align: center;
262256
}
@@ -313,3 +307,302 @@
313307
width: 100%;
314308
text-align: left;
315309
}
310+
311+
/* Compact & full networks table */
312+
.compactNetworksTable {
313+
width: 100%;
314+
margin: 0 auto 2rem;
315+
overflow-x: auto;
316+
border: 1px solid var(--border-color, #e5e7eb);
317+
border-radius: 4px;
318+
}
319+
320+
.networksTable {
321+
width: 100%;
322+
border-collapse: collapse !important;
323+
font-size: 0.875rem;
324+
margin-bottom: 0;
325+
table-layout: fixed !important;
326+
}
327+
328+
.networksTable,
329+
.networksTable tr,
330+
.networksTable td {
331+
border: none;
332+
border-collapse: collapse;
333+
}
334+
335+
.networksTable th {
336+
background-color: var(--color-background-tertiary, #f5f9ff);
337+
text-align: left;
338+
font-weight: var(--font-weight-medium, 500);
339+
border: none;
340+
border-bottom: 1px solid var(--border-color, #e5e7eb);
341+
color: var(--color-text-heading, #111827);
342+
padding: 0.75rem 1rem !important;
343+
}
344+
345+
.networksTable td {
346+
border: none !important;
347+
vertical-align: middle;
348+
word-break: break-word;
349+
text-align: left;
350+
padding: 0.75rem 1rem !important;
351+
}
352+
353+
tr.firstNetworkRow td {
354+
border-top: 1px solid var(--color-border-secondary, #e5e7eb) !important;
355+
}
356+
357+
.networkColumn {
358+
width: 24%;
359+
min-width: 90px;
360+
padding-left: 1rem !important;
361+
}
362+
363+
.environmentColumn {
364+
width: 28%;
365+
}
366+
367+
.addressColumn {
368+
width: 48%;
369+
padding-left: 1rem !important;
370+
}
371+
372+
/* Context 2: table-cell info */
373+
.networkInfo {
374+
display: flex;
375+
align-items: center;
376+
gap: 0.5rem;
377+
overflow: hidden;
378+
}
379+
380+
.networkInfo img {
381+
width: 22px;
382+
height: 22px;
383+
object-fit: contain;
384+
flex-shrink: 0;
385+
}
386+
387+
.networkInfo span {
388+
font-weight: 500;
389+
color: var(--color-text-heading, #111827);
390+
white-space: normal;
391+
word-break: break-word;
392+
font-size: 0.95rem;
393+
overflow: hidden;
394+
text-overflow: ellipsis;
395+
}
396+
397+
tr.statusRow td {
398+
padding: 0.5rem 1rem !important;
399+
background-color: transparent;
400+
text-align: right !important;
401+
border-top: none;
402+
border-bottom: none;
403+
}
404+
405+
.statusCell {
406+
padding-top: 0 !important;
407+
}
408+
409+
.statusLink {
410+
color: var(--color-text-link, #2563eb);
411+
font-size: 0.75rem;
412+
text-decoration: none;
413+
display: inline-flex;
414+
align-items: center;
415+
}
416+
417+
.statusLink:hover {
418+
text-decoration: underline;
419+
}
420+
421+
.compactAddressContainer {
422+
display: flex;
423+
align-items: center;
424+
gap: 0.25rem;
425+
font-family: monospace;
426+
font-size: 0.75rem;
427+
max-width: 100%;
428+
background: transparent;
429+
padding: 0;
430+
border-radius: 3px;
431+
border: none;
432+
width: 100%;
433+
}
434+
435+
.compactAddressLink {
436+
white-space: nowrap;
437+
overflow: hidden;
438+
text-overflow: ellipsis;
439+
color: var(--color-text-link, #2563eb);
440+
text-decoration: none;
441+
line-height: 1.4;
442+
background: var(--color-background-secondary, #f8f9fa);
443+
padding: 0.25rem 0.375rem;
444+
border-radius: 3px;
445+
display: inline-block;
446+
max-width: calc(100% - 24px);
447+
}
448+
449+
.mt1 {
450+
margin-top: 0.5rem;
451+
}
452+
453+
.testnetRow {
454+
background-color: transparent !important;
455+
}
456+
457+
@media (max-width: 768px) {
458+
.networksTable {
459+
font-size: 0.75rem;
460+
white-space: normal;
461+
}
462+
463+
.networksTable th:nth-child(1) {
464+
width: 22% !important;
465+
}
466+
467+
.networksTable th:nth-child(2) {
468+
width: 28% !important;
469+
}
470+
471+
.networksTable th:nth-child(3) {
472+
width: 50% !important;
473+
}
474+
475+
.networksTable th,
476+
.networksTable td {
477+
padding: 0.5rem !important;
478+
}
479+
480+
.networkColumn {
481+
width: 22% !important;
482+
min-width: 70px;
483+
}
484+
485+
.networksTable td:nth-child(2) {
486+
width: 28% !important;
487+
min-width: 60px;
488+
font-size: 0.7rem;
489+
color: var(--color-text-secondary, #6b7280);
490+
padding-right: 0.5rem !important;
491+
}
492+
493+
.addressColumn {
494+
width: 50% !important;
495+
min-width: 150px;
496+
}
497+
498+
.networkInfo img {
499+
width: 16px;
500+
height: 16px;
501+
}
502+
503+
.networkInfo {
504+
gap: 0.4rem;
505+
}
506+
507+
.networkInfo span {
508+
font-size: 0.75rem;
509+
font-weight: 600;
510+
line-height: 1.2;
511+
max-width: calc(100% - 20px);
512+
}
513+
514+
.compactAddressContainer {
515+
font-size: 0.75rem;
516+
}
517+
518+
.compactAddressLink {
519+
font-size: 0.75rem;
520+
}
521+
522+
.addressLabel {
523+
font-size: 0.65rem;
524+
margin-bottom: 0.125rem;
525+
}
526+
527+
tr.statusRow td {
528+
padding-top: 0.25rem !important;
529+
padding-bottom: 0.5rem !important;
530+
}
531+
}
532+
533+
@media (max-width: 480px) {
534+
.networksTable th:nth-child(1) {
535+
width: 24% !important;
536+
}
537+
538+
.networksTable th:nth-child(2) {
539+
width: 26% !important;
540+
}
541+
542+
.networksTable th:nth-child(3) {
543+
width: 50% !important;
544+
}
545+
546+
.networksTable th {
547+
font-size: 0.7rem;
548+
white-space: nowrap;
549+
padding: 0.5rem 0.35rem !important;
550+
}
551+
552+
.networksTable td {
553+
padding: 0.5rem 0.35rem !important;
554+
}
555+
556+
.networkColumn {
557+
width: 24% !important;
558+
min-width: 60px;
559+
padding-left: 0.35rem !important;
560+
}
561+
562+
.networksTable td:nth-child(2) {
563+
width: 26% !important;
564+
min-width: 50px;
565+
padding-right: 0.35rem !important;
566+
}
567+
568+
.addressColumn {
569+
width: 50% !important;
570+
padding-left: 0.35rem !important;
571+
}
572+
573+
.compactAddressContainer {
574+
max-width: 100%;
575+
}
576+
577+
.compactAddressLink {
578+
font-size: 0.7rem;
579+
padding: 0.2rem 0.25rem;
580+
max-width: calc(100% - 20px);
581+
white-space: normal;
582+
overflow: hidden;
583+
word-break: break-all;
584+
display: -webkit-box;
585+
-webkit-line-clamp: 2;
586+
-webkit-box-orient: vertical;
587+
}
588+
589+
.networkInfo img {
590+
width: 14px;
591+
height: 14px;
592+
}
593+
594+
.networkInfo {
595+
gap: 0.3rem;
596+
}
597+
598+
.networkInfo span {
599+
font-size: 0.7rem;
600+
}
601+
}
602+
603+
.addressLabel {
604+
display: block;
605+
font-size: 0.7rem;
606+
color: var(--color-text-secondary, #6b7280);
607+
margin-bottom: 0.25rem;
608+
}

0 commit comments

Comments
 (0)