Skip to content

Commit a9e5f7d

Browse files
committed
fix: update drawer container styles and improve column specifications for LaneDrawer and TokenDrawer
1 parent 3f4134c commit a9e5f7d

File tree

3 files changed

+61
-28
lines changed

3 files changed

+61
-28
lines changed

src/components/CCIP/Drawer/LaneDrawer.tsx

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function LaneDrawer({
7979
inDrawer={true}
8080
/>
8181

82-
<div className="ccip-table__drawer-container">
82+
<div className="ccip-table__drawer-container ccip-table__drawer-container--lane">
8383
<div className="ccip-table__filters">
8484
<div>
8585
<div className="ccip-table__filters-title">
@@ -126,9 +126,7 @@ function LaneDrawer({
126126
}}
127127
/>
128128
</div>
129-
<div style={{ color: "var(--muted-more-foreground)", fontSize: "0.875rem", fontWeight: "normal" }}>
130-
(Tokens)
131-
</div>
129+
<span className="ccip-table__header-sublabel">(Tokens)</span>
132130
</th>
133131
<th style={{ width: "180px" }}>
134132
<div>
@@ -146,9 +144,7 @@ function LaneDrawer({
146144
}}
147145
/>
148146
</div>
149-
<div style={{ color: "var(--muted-more-foreground)", fontSize: "0.875rem", fontWeight: "normal" }}>
150-
(Tokens/sec)
151-
</div>
147+
<span className="ccip-table__header-sublabel">(Tokens/sec)</span>
152148
</th>
153149
<th style={{ width: "150px" }}>
154150
<div>
@@ -166,9 +162,7 @@ function LaneDrawer({
166162
}}
167163
/>
168164
</div>
169-
<div style={{ color: "var(--muted-more-foreground)", fontSize: "0.875rem", fontWeight: "normal" }}>
170-
(Tokens)
171-
</div>
165+
<span className="ccip-table__header-sublabel">(Tokens)</span>
172166
</th>
173167
<th style={{ width: "180px" }}>
174168
<div>
@@ -186,9 +180,7 @@ function LaneDrawer({
186180
}}
187181
/>
188182
</div>
189-
<div style={{ color: "var(--muted-more-foreground)", fontSize: "0.875rem", fontWeight: "normal" }}>
190-
(Tokens/sec)
191-
</div>
183+
<span className="ccip-table__header-sublabel">(Tokens/sec)</span>
192184
</th>
193185
</tr>
194186
</thead>

src/components/CCIP/Drawer/TokenDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function TokenDrawer({
184184
}}
185185
inDrawer={true}
186186
/>
187-
<div className="ccip-table__drawer-container">
187+
<div className="ccip-table__drawer-container ccip-table__drawer-container--token">
188188
<div className="ccip-table__filters">
189189
<div>
190190
<Tabs

src/components/CCIP/Tables/Table.css

Lines changed: 55 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,83 @@
1111
}
1212

1313
/* Column width specifications for lanes accordion table in drawer only */
14-
.ccip-table__drawer-container .ccip-table thead th:nth-child(1) {
15-
/* Destination/Source network */
14+
.ccip-table__drawer-container--token .ccip-table thead th:nth-child(1) {
15+
/* Destination/Source network in TokenDrawer */
1616
width: 25%;
1717
}
1818

19-
.ccip-table__drawer-container .ccip-table thead th:nth-child(2) {
20-
/* Mechanism */
19+
.ccip-table__drawer-container--lane .ccip-table thead th:nth-child(1) {
20+
/* Ticker column in LaneDrawer */
21+
width: 100px;
22+
}
23+
24+
.ccip-table__drawer-container--token .ccip-table thead th:nth-child(2) {
25+
/* Mechanism in TokenDrawer */
2126
width: 15%;
2227
}
2328

24-
.ccip-table__drawer-container .ccip-table thead th:nth-child(3) {
25-
/* Rate limit capacity */
29+
.ccip-table__drawer-container--token .ccip-table thead th:nth-child(3) {
30+
/* Rate limit capacity in TokenDrawer */
2631
width: 15%;
2732
}
2833

29-
.ccip-table__drawer-container .ccip-table thead th:nth-child(4) {
30-
/* Rate limit refill rate */
34+
.ccip-table__drawer-container--token .ccip-table thead th:nth-child(4) {
35+
/* Rate limit refill rate in TokenDrawer */
3136
width: 15%;
3237
}
3338

34-
.ccip-table__drawer-container .ccip-table thead th:nth-child(5) {
35-
/* FTF Rate limit capacity */
39+
.ccip-table__drawer-container--token .ccip-table thead th:nth-child(5) {
40+
/* FTF Rate limit capacity in TokenDrawer */
3641
width: 15%;
3742
}
3843

39-
.ccip-table__drawer-container .ccip-table thead th:nth-child(6) {
40-
/* FTF Rate limit refill rate */
44+
.ccip-table__drawer-container--token .ccip-table thead th:nth-child(6) {
45+
/* FTF Rate limit refill rate in TokenDrawer */
4146
width: 15%;
4247
}
4348

44-
.ccip-table__drawer-container .ccip-table thead th:nth-child(7) {
45-
/* Verifiers */
49+
.ccip-table__drawer-container--lane .ccip-table thead th:nth-child(2) {
50+
/* Source token address in LaneDrawer */
51+
width: 150px;
52+
}
53+
54+
.ccip-table__drawer-container--lane .ccip-table thead th:nth-child(3) {
55+
/* Decimals in LaneDrawer */
56+
width: 80px;
57+
}
58+
59+
.ccip-table__drawer-container--lane .ccip-table thead th:nth-child(4) {
60+
/* Mechanism in LaneDrawer */
61+
width: 100px;
62+
}
63+
64+
.ccip-table__drawer-container--lane .ccip-table thead th:nth-child(5) {
65+
/* Rate limit capacity in LaneDrawer */
66+
width: 150px;
67+
}
68+
69+
.ccip-table__drawer-container--lane .ccip-table thead th:nth-child(6) {
70+
/* Rate limit refill rate in LaneDrawer */
71+
width: 180px;
72+
}
73+
74+
.ccip-table__drawer-container--lane .ccip-table thead th:nth-child(8) {
75+
/* FTF Rate limit refill rate in LaneDrawer (8th column) */
76+
width: 180px;
77+
}
78+
79+
.ccip-table__drawer-container--token .ccip-table thead th:nth-child(7) {
80+
/* Verifiers column in TokenDrawer */
4681
width: 10%;
4782
text-align: right !important;
4883
}
4984

85+
.ccip-table__drawer-container--lane .ccip-table thead th:nth-child(7) {
86+
/* FTF Rate limit capacity column in LaneDrawer */
87+
width: 15%;
88+
text-align: left;
89+
}
90+
5091
.ccip-table tbody tr:first-child {
5192
border: none;
5293
}

0 commit comments

Comments
 (0)