Skip to content

Commit dcd2750

Browse files
authored
fix: destination item text overflow, faucet notification style (#35)
1 parent d7e4846 commit dcd2750

File tree

2 files changed

+40
-21
lines changed

2 files changed

+40
-21
lines changed

components/common/button/LineBodyInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<style lang="scss" scoped>
1818
.button-line-body-info {
19-
@apply w-max leading-tight;
19+
@apply w-max max-w-full leading-tight;
2020
2121
.button-line-body-info-label,
2222
.button-line-body-info-secondary {

views/zksync/era/Assets.vue

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -65,25 +65,33 @@
6565
</CommonContentBlock>
6666

6767
<transition v-bind="TransitionAlertScaleInOutTransition">
68-
<div v-if="isFaucetDisplayed">
69-
<DestinationItem
70-
as="div"
71-
:icon-url="destinations.era.iconUrl"
72-
:label="selectedEthereumNetwork.network === 'mainnet' ? 'New to zkSync Era?' : 'Not enough tokens?'"
73-
:description="
74-
selectedEthereumNetwork.network === 'mainnet'
75-
? 'Explore with free test tokens'
76-
: 'Use official zkSync Era faucet'
77-
"
78-
class="mt-3"
79-
>
80-
<template #right>
81-
<CommonButton as="RouterLink" :to="{ name: 'transaction-zksync-era-faucet' }">
82-
Get free test tokens
83-
</CommonButton>
84-
</template>
85-
</DestinationItem>
86-
</div>
68+
<CommonContentBlock v-if="isFaucetDisplayed" class="faucet-notification">
69+
<div class="-m-3">
70+
<DestinationItem
71+
as="div"
72+
:icon-url="destinations.era.iconUrl"
73+
:label="selectedEthereumNetwork.network === 'mainnet' ? 'New to zkSync Era?' : 'Not enough tokens?'"
74+
:description="
75+
selectedEthereumNetwork.network === 'mainnet'
76+
? 'Explore with free test tokens'
77+
: 'Use official zkSync Era faucet'
78+
"
79+
>
80+
<template #right>
81+
<CommonButton
82+
as="RouterLink"
83+
:to="{ name: 'transaction-zksync-era-faucet' }"
84+
class="destination-item-button"
85+
>
86+
Get free test tokens
87+
</CommonButton>
88+
</template>
89+
</DestinationItem>
90+
<CommonButton as="RouterLink" :to="{ name: 'transaction-zksync-era-faucet' }" class="outside-button">
91+
Get free test tokens
92+
</CommonButton>
93+
</div>
94+
</CommonContentBlock>
8795
</transition>
8896
</div>
8997
</template>
@@ -167,4 +175,15 @@ onBeforeUnmount(() => {
167175
});
168176
</script>
169177

170-
<style lang="scss" scoped></style>
178+
<style lang="scss" scoped>
179+
.faucet-notification {
180+
@apply mt-3;
181+
182+
.destination-item-button {
183+
@apply -my-1 max-xs:hidden;
184+
}
185+
.outside-button {
186+
@apply w-full xs:hidden;
187+
}
188+
}
189+
</style>

0 commit comments

Comments
 (0)