-
Notifications
You must be signed in to change notification settings - Fork 0
Fix 340 #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix 340 #32
Changes from all commits
7cc68d0
9ee7008
727568b
8fed7c6
ccc4922
77641e2
526ef34
9f1dccb
159133c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,13 +48,20 @@ const searchLanes = getSearchLanes({ environment }) | |
|
||
<CcipLayout frontmatter={entry.data} {headings} environment={environment}> | ||
<Drawer client:only="react" /> | ||
<ChainHero chains={networks} tokens={allTokens} network={network} environment={environment} lanes={searchLanes} /> | ||
<ChainHero | ||
chains={networks} | ||
tokens={allTokens} | ||
network={network} | ||
environment={environment} | ||
lanes={searchLanes} | ||
client:load | ||
/> | ||
<section class="layout"> | ||
<div> | ||
<Table | ||
environment={environment} | ||
lanes={lanes} | ||
client:only="react" | ||
client:load | ||
explorerUrl={network.explorerUrl} | ||
sourceNetwork={{ | ||
name: network.name, | ||
|
@@ -78,18 +85,17 @@ const searchLanes = getSearchLanes({ environment }) | |
<style scoped="false"> | ||
.layout { | ||
--gutter: var(--space-6x); | ||
--doc-padding: 2rem; | ||
--doc-padding: var(--space-6x); | ||
margin: var(--space-8x) auto; | ||
display: grid; | ||
grid-template-columns: 1fr; | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--gutter); | ||
padding: var(--doc-padding); | ||
} | ||
|
||
.ccip-heading { | ||
display: flex; | ||
padding-bottom: var(--space-4x); | ||
border-bottom: 1px solid var(--gray-200); | ||
margin-bottom: var(--space-6x); | ||
justify-content: space-between; | ||
} | ||
|
@@ -110,13 +116,13 @@ const searchLanes = getSearchLanes({ environment }) | |
.networks__grid { | ||
display: grid; | ||
grid-template-columns: 1fr; | ||
gap: var(--space-8x); | ||
gap: var(--space-2x); | ||
} | ||
|
||
.tokens__grid { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
gap: var(--space-8x); | ||
grid-template-columns: 32% 32% 32%; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why use the percentage instead than the FR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well the grid doesn't respect the page width I tried to force it but it didn't work Here is the result with So the 32% is the perfect percentage to make the grid looks good in almost every mobile screen size, we are still using 1fr for the desktop Screen.Recording.2024-10-23.at.4.30.38.PM.mp4There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I tried it as well and it didn't make the same issue, probably it was a problem with the layout and I fixed it while modifying it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I found out what this is. It is a bug with "display: contents" that is applied when using Astro islands. I reverted it back to 32% |
||
gap: var(--space-2x); | ||
} | ||
|
||
@media (min-width: 50em) { | ||
|
@@ -127,6 +133,7 @@ const searchLanes = getSearchLanes({ environment }) | |
|
||
@media (min-width: 992px) { | ||
.layout { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
gap: var(--space-24x); | ||
} | ||
|
@@ -142,5 +149,9 @@ const searchLanes = getSearchLanes({ environment }) | |
grid-template-columns: 1fr 1fr 1fr 1fr; | ||
gap: var(--space-4x); | ||
} | ||
|
||
.ccip-heading { | ||
border-bottom: 1px solid var(--gray-200); | ||
} | ||
} | ||
</style> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,13 +36,10 @@ | |
} | ||
|
||
.ccip-chain-hero__content { | ||
--gutter: var(--space-10x); | ||
Zelig880 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
--doc-padding: 2rem; | ||
--gutter: var(--space-6x); | ||
--doc-padding: var(--space-6x); | ||
gap: var(--gutter); | ||
padding-left: var(--space-4x); | ||
padding-right: var(--space-4x); | ||
padding-top: var(--space-10x); | ||
padding-bottom: var(--space-10x); | ||
padding: var(--space-6x); | ||
margin: 0 auto; | ||
display: flex; | ||
flex-direction: column; | ||
|
@@ -54,19 +51,20 @@ | |
|
||
.ccip-chain-hero__top { | ||
display: flex; | ||
flex-direction: column-reverse; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
justify-content: space-between; | ||
align-items: center; | ||
gap: var(--space-16x); | ||
align-items: start; | ||
gap: var(--space-6x); | ||
} | ||
|
||
.ccip-chain-hero__chainSearch { | ||
width: 358px; | ||
width: 100%; | ||
} | ||
|
||
.ccip-chain-hero__details { | ||
display: grid; | ||
gap: var(--space-4x); | ||
grid-template-columns: 1fr 1fr 1fr 1fr 1fr; | ||
gap: var(--space-6x); | ||
grid-template-columns: 1fr; | ||
} | ||
|
||
.ccip-chain-hero__details__label { | ||
|
@@ -76,18 +74,20 @@ | |
font-weight: 600; | ||
font-size: 14px; | ||
line-height: 22px; | ||
padding-bottom: var(--space-4x); | ||
padding-bottom: var(--space-2x); | ||
color: var(--gray-500); | ||
} | ||
|
||
.ccip-chain-hero__feeTokens__list { | ||
display: flex; | ||
align-items: center; | ||
gap: var(--space-20x); | ||
align-items: start; | ||
flex-direction: column; | ||
gap: var(--space-4x); | ||
} | ||
|
||
.ccip-chain-hero__feeTokens__item { | ||
display: flex; | ||
|
||
align-items: center; | ||
gap: var(--space-2x); | ||
color: var(--gray-900); | ||
|
@@ -137,7 +137,29 @@ | |
} | ||
|
||
@media (min-width: 992px) { | ||
.ccip-chain-hero__top { | ||
flex-direction: row; | ||
gap: var(--space-16x); | ||
align-items: center; | ||
} | ||
|
||
.ccip-chain-hero__chainSearch { | ||
width: 358px; | ||
} | ||
|
||
.ccip-chain-hero__details { | ||
grid-template-columns: 1fr 1fr 1fr 1fr 1fr; | ||
gap: var(--space-4x); | ||
} | ||
|
||
.ccip-chain-hero__feeTokens__list { | ||
align-items: center; | ||
flex-direction: row; | ||
gap: var(--space-20x); | ||
} | ||
|
||
.ccip-chain-hero__content { | ||
--gutter: var(--space-10x); | ||
grid-template-columns: 1fr 1fr; | ||
padding-left: var(--space-10x); | ||
padding-right: var(--space-10x); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ | |
|
||
.drawer__content { | ||
overflow-y: auto; | ||
height: 100%; | ||
} | ||
|
||
.drawer__open .drawer__container { | ||
|
Uh oh!
There was an error while loading. Please reload this page.