Skip to content

Commit ace902d

Browse files
feat(compare): enhance comparison experience
1 parent d4d8c24 commit ace902d

4 files changed

Lines changed: 724 additions & 158 deletions

File tree

DebugProbe.AspNetCore/Assets/css/debugprobe.css

Lines changed: 88 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,11 @@ tbody tr:last-child td {
477477

478478
#compareResult:not(:empty) {
479479
margin: 0 10px 10px;
480-
overflow: hidden;
480+
display: grid;
481+
gap: 8px;
481482
border: 1px solid #eceff3;
482483
border-radius: 6px;
484+
padding: 8px;
483485
}
484486

485487
.payload-panel {
@@ -685,7 +687,7 @@ pre {
685687

686688
.compare-row {
687689
display: grid;
688-
grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
690+
grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(100px, 0.45fr);
689691
gap: 12px;
690692
padding: 8px 10px;
691693
border-bottom: 1px solid #f2f4f7;
@@ -715,6 +717,11 @@ pre {
715717
font-size: 12px;
716718
}
717719

720+
.compare-row strong {
721+
color: #4b5563;
722+
font-size: 12px;
723+
}
724+
718725
.compare-row-changed {
719726
background: rgba(255, 200, 0, 0.12);
720727
}
@@ -764,6 +771,85 @@ pre {
764771
color: #b42318;
765772
}
766773

774+
.compare-summary {
775+
display: grid;
776+
gap: 8px;
777+
padding: 10px;
778+
background: #fff;
779+
border: 1px solid #eceff3;
780+
border-radius: 6px;
781+
}
782+
783+
.compare-summary-head {
784+
display: flex;
785+
align-items: center;
786+
justify-content: space-between;
787+
gap: 12px;
788+
padding-bottom: 8px;
789+
border-bottom: 1px solid #f2f4f7;
790+
}
791+
792+
.compare-summary-head strong {
793+
color: #111827;
794+
font-size: 15px;
795+
}
796+
797+
.compare-summary-head span,
798+
.compare-summary-empty {
799+
color: #6b7280;
800+
font-size: 12px;
801+
font-weight: 700;
802+
}
803+
804+
.compare-summary-group {
805+
display: grid;
806+
gap: 6px;
807+
}
808+
809+
.compare-summary-group h4,
810+
.compare-subhead {
811+
margin: 0;
812+
color: #4b5563;
813+
font-size: 12px;
814+
font-weight: 800;
815+
text-transform: uppercase;
816+
}
817+
818+
.compare-summary-item {
819+
display: grid;
820+
grid-template-columns: minmax(110px, auto) minmax(160px, 0.8fr) minmax(0, 1fr);
821+
gap: 10px;
822+
align-items: center;
823+
padding: 7px 8px;
824+
background: #fbfbfc;
825+
border: 1px solid #f2f4f7;
826+
border-radius: 6px;
827+
font-size: 12px;
828+
}
829+
830+
.compare-summary-item strong {
831+
color: #111827;
832+
}
833+
834+
.compare-summary-item small {
835+
overflow-wrap: anywhere;
836+
color: #4b5563;
837+
font-size: 12px;
838+
}
839+
840+
.compare-tag {
841+
display: inline-flex;
842+
align-items: center;
843+
justify-content: center;
844+
min-height: 22px;
845+
padding: 0 8px;
846+
background: #eef2ff;
847+
border-radius: 999px;
848+
color: #3730a3;
849+
font-size: 11px;
850+
font-weight: 800;
851+
}
852+
767853
/* =========================
768854
Badges
769855
========================= */

DebugProbe.AspNetCore/Assets/html/details.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@
105105
<div class="trace-card-title">
106106
<span class="trace-dot" aria-hidden="true"></span>
107107
<span class="trace-label">Compare Trace</span>
108-
<strong>Remote environment</strong>
109108
</div>
110109
</div>
111110

0 commit comments

Comments
 (0)