Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,8 @@ export const PayWithCryptoTab = ({ skipOnCloseCallback, isSwitchingChainRef }: P
}

return (
<div className="flex flex-row justify-between items-center w-full gap-2">
<div className="flex flex-col gap-0">
<div className="flex flex-row flex-wrap justify-between items-center w-full gap-2">
<div className="flex flex-col gap-0 min-w-0">
<Text
variant="xsmall"
color="text100"
Expand All @@ -612,7 +612,7 @@ export const PayWithCryptoTab = ({ skipOnCloseCallback, isSwitchingChainRef }: P
fontSize: '24px'
}}
>
{displayPrice}
{`${displayPrice} ${dataCurrencyInfo?.symbol}`}
</Text>
<div>
<Text color="text50" variant="xsmall" fontWeight="normal">
Expand All @@ -629,7 +629,7 @@ export const PayWithCryptoTab = ({ skipOnCloseCallback, isSwitchingChainRef }: P
</Text>
</div>
</div>
<div>
<div className="flex-shrink-0">
<TokenSelector />
</div>
</div>
Expand Down
17 changes: 17 additions & 0 deletions packages/connect/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,9 +624,15 @@ export const styles = String.raw`
.min-w-full {
min-width: 100%;
}
.flex-1 {
flex: 1;
}
.flex-shrink {
flex-shrink: 1;
}
.flex-shrink-0 {
flex-shrink: 0;
}
.shrink-0 {
flex-shrink: 0;
}
Expand Down Expand Up @@ -707,6 +713,9 @@ export const styles = String.raw`
.flex-row {
flex-direction: row;
}
.flex-wrap {
flex-wrap: wrap;
}
.place-items-center {
place-items: center;
}
Expand Down Expand Up @@ -1185,6 +1194,14 @@ export const styles = String.raw`
--tw-leading: calc(var(--spacing) * 0);
line-height: calc(var(--spacing) * 0);
}
.leading-0\.5 {
--tw-leading: calc(var(--spacing) * 0.5);
line-height: calc(var(--spacing) * 0.5);
}
.leading-1 {
--tw-leading: calc(var(--spacing) * 1);
line-height: calc(var(--spacing) * 1);
}
.leading-4 {
--tw-leading: calc(var(--spacing) * 4);
line-height: calc(var(--spacing) * 4);
Expand Down