Skip to content

Commit fed6a73

Browse files
authored
Update token details page (#178)
* feat: add additional columns for pool version, custom, and min blocks in TokenChainsTable * fix: adjust layout styles for improved responsiveness and alignment * fix: swap token name and ID display in ChainHero component; update placeholder font style in Search CSS * fix: refactor ChainHero heading styles for improved layout and alignment
1 parent 086551f commit fed6a73

File tree

5 files changed

+32
-19
lines changed

5 files changed

+32
-19
lines changed

src/components/CCIP/ChainHero/ChainHero.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
margin: 0;
1818
font-size: 28px;
1919
font-weight: 500;
20+
display: flex;
21+
align-items: center;
22+
gap: 8px;
23+
position: relative;
24+
overflow: visible;
25+
line-height: var(--space-6x);
2026
}
2127

2228
.ccip-chain-hero__heading img {
@@ -121,7 +127,8 @@
121127
.ccip-chain-hero__token-logo__symbol {
122128
font-weight: 500;
123129
font-size: 18px;
124-
color: var(--gray-700);
130+
color: var(--Page-Foreground-Muted, #6c7585);
131+
align-self: self-end;
125132
}
126133

127134
.ccip-chain-hero__feeTokens__list {

src/components/CCIP/ChainHero/ChainHero.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,9 @@ function ChainHero({ chains, tokens, network, token, environment, lanes }: Chain
127127
currentTarget.src = fallbackTokenIconUrl
128128
}}
129129
/>
130-
<h1
131-
style={{
132-
display: "flex",
133-
alignItems: "center",
134-
gap: "8px",
135-
position: "relative",
136-
overflow: "visible",
137-
}}
138-
>
139-
{network?.name || token?.id}
140-
<span className="ccip-chain-hero__token-logo__symbol">{token?.name}</span>
130+
<h1>
131+
{network?.name || token?.name}
132+
<span className="ccip-chain-hero__token-logo__symbol">{token?.id}</span>
141133

142134
{chainTooltipConfig && (
143135
<Tooltip

src/components/CCIP/Search/Search.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
outline: none;
3434
}
3535

36+
.ccip-hero__search input::placeholder {
37+
font-style: normal;
38+
}
39+
3640
.ccip-hero__search input::-webkit-search-cancel-button {
3741
-webkit-appearance: none;
3842
height: 1em;

src/components/CCIP/Tables/TokenChainsTable.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ function TokenChainsTable({ networks, token, lanes, environment }: TableProps) {
6060
<th>Token address</th>
6161
<th>Token pool type</th>
6262
<th>Token pool address</th>
63+
<th>Pool version</th>
64+
<th>Custom</th>
65+
<th>Min Blocks required</th>
6366
</tr>
6467
</thead>
6568
<tbody>
@@ -125,7 +128,7 @@ function TokenChainsTable({ networks, token, lanes, environment }: TableProps) {
125128
<Address
126129
contractUrl={getExplorerAddressUrl(network.explorer, network.chainType)(network.tokenAddress)}
127130
address={network.tokenAddress}
128-
endLength={6}
131+
endLength={4}
129132
/>
130133
</td>
131134
<td>{tokenPoolDisplay(network.tokenPoolType)}</td>
@@ -136,9 +139,12 @@ function TokenChainsTable({ networks, token, lanes, environment }: TableProps) {
136139
network.chainType
137140
)(network.tokenPoolAddress)}
138141
address={network.tokenPoolAddress}
139-
endLength={6}
142+
endLength={4}
140143
/>
141144
</td>
145+
<td>TBC</td>
146+
<td>TBC</td>
147+
<td>TBC</td>
142148
</tr>
143149
)
144150
})}

src/components/CCIP/Token/Token.astro

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,8 @@ const tokenStructuredData = generateTokenStructuredData(token, environment, chai
171171

172172
<style scoped="false">
173173
.layout {
174-
--doc-padding: var(--space-6x);
175-
margin: var(--space-8x) auto;
176-
padding: var(--doc-padding);
174+
margin: 0 auto;
175+
padding: var(--space-6x);
177176
}
178177

179178
.layout h2 {
@@ -205,8 +204,13 @@ const tokenStructuredData = generateTokenStructuredData(token, environment, chai
205204

206205
@media (min-width: 50em) {
207206
.layout {
208-
max-width: min(calc(1440px - 2 * var(--space-16x)), calc(100% - 2 * var(--space-16x)));
209-
padding: 0;
207+
max-width: 1500px;
208+
}
209+
}
210+
211+
@media (min-width: 992px) {
212+
.layout {
213+
padding: var(--space-10x) var(--space-8x);
210214
}
211215
}
212216
</style>

0 commit comments

Comments
 (0)