Skip to content

Commit bd3b747

Browse files
committed
feat(test-ui): better explorer transaction info page
1 parent d39a1e6 commit bd3b747

3 files changed

Lines changed: 313 additions & 71 deletions

File tree

crates/acton-localnet-ui/src/explorer/pages/TransactionPage.module.css

Lines changed: 103 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
.container {
2-
padding: var(--spacing-lg) var(--spacing-md);
2+
padding: 24px 32px 40px;
33
display: flex;
44
flex-direction: column;
55
gap: var(--spacing-lg);
6-
max-width: 1400px;
7-
margin: 0 auto;
86
}
97

108
.title {
@@ -29,6 +27,15 @@
2927
min-height: 0;
3028
}
3129

30+
.preTreeContent {
31+
display: flex;
32+
flex-direction: column;
33+
gap: var(--spacing-lg);
34+
align-self: flex-start;
35+
width: 100%;
36+
max-width: 1400px;
37+
}
38+
3239
.overviewCard {
3340
background: var(--tonscan-card-bg);
3441
border: 1px solid var(--tonscan-border);
@@ -98,6 +105,7 @@
98105

99106
.tabs {
100107
display: flex;
108+
align-items: flex-end;
101109
gap: 8px;
102110
border-bottom: 1px solid var(--tonscan-border);
103111
padding-bottom: 0;
@@ -116,6 +124,7 @@
116124
font-weight: 500;
117125
cursor: pointer;
118126
transition: all 0.2s;
127+
margin-bottom: -1px;
119128
}
120129

121130
.tab:hover {
@@ -137,12 +146,95 @@
137146
display: flex;
138147
flex-direction: column;
139148
gap: 12px;
149+
width: 100%;
150+
min-width: 0;
151+
--trace-step: 24px;
152+
--trace-connector-offset: 12px;
153+
--trace-line-thickness: 1px;
154+
--trace-line-color: var(--text-muted);
155+
}
156+
157+
.traceNode {
158+
position: relative;
159+
display: flex;
160+
flex-direction: column;
161+
gap: 12px;
162+
width: 100%;
163+
min-width: 0;
164+
}
165+
166+
.traceTransaction {
167+
position: relative;
168+
display: flex;
169+
flex-direction: column;
170+
width: 100%;
171+
min-width: 0;
172+
}
173+
174+
.traceChildren {
175+
position: relative;
176+
display: flex;
177+
flex-direction: column;
178+
gap: 12px;
179+
width: 100%;
180+
min-width: 0;
181+
box-sizing: border-box;
182+
padding-left: var(--trace-step);
183+
}
184+
185+
.traceConnectorAnchor {
186+
position: absolute;
187+
top: 100%;
188+
left: 0;
189+
width: 0;
190+
height: 0;
191+
pointer-events: none;
192+
}
193+
194+
.traceConnectorRail {
195+
position: absolute;
196+
top: 0;
197+
left: var(--trace-connector-offset);
198+
width: var(--trace-line-thickness);
199+
height: var(--trace-connector-height);
200+
background: var(--trace-line-color);
201+
}
202+
203+
.traceTerminalCurve,
204+
.traceSiblingCurve {
205+
position: absolute;
206+
width: var(--trace-connector-offset);
207+
height: var(--trace-connector-offset);
208+
box-sizing: border-box;
209+
border-left: var(--trace-line-thickness) solid var(--trace-line-color);
210+
border-bottom: var(--trace-line-thickness) solid var(--trace-line-color);
211+
border-radius: 0 0 0 9px;
212+
pointer-events: none;
213+
}
214+
215+
.traceTerminalCurve {
216+
top: var(--trace-connector-height);
217+
left: var(--trace-connector-offset);
218+
}
219+
220+
.traceSiblingCurve {
221+
top: var(--trace-connector-offset);
222+
left: calc(-1 * var(--trace-connector-offset));
140223
}
141224

142225
.detailCard {
143-
background: var(--tonscan-card-bg);
226+
position: relative;
227+
z-index: 1;
228+
width: 100%;
229+
min-width: 0;
144230
padding: 0;
145-
margin-bottom: var(--spacing-sm);
231+
margin-bottom: 0;
232+
}
233+
234+
.detailCard > :global(*) {
235+
box-sizing: border-box;
236+
width: 100%;
237+
min-width: 0;
146238
}
147239

148240
.transactionsList {
@@ -271,6 +363,12 @@
271363
}
272364
}
273365

366+
@media (max-width: 1100px) {
367+
.container {
368+
padding: 20px;
369+
}
370+
}
371+
274372
@media (max-width: 1024px) {
275373
.content {
276374
grid-template-columns: 1fr;

0 commit comments

Comments
 (0)