File tree Expand file tree Collapse file tree 2 files changed +40
-21
lines changed Expand file tree Collapse file tree 2 files changed +40
-21
lines changed Original file line number Diff line number Diff line change 16
16
17
17
<style lang="scss" scoped>
18
18
.button-line-body-info {
19
- @apply w-max leading-tight ;
19
+ @apply w-max max-w-full leading-tight ;
20
20
21
21
.button-line-body-info-label ,
22
22
.button-line-body-info-secondary {
Original file line number Diff line number Diff line change 65
65
</CommonContentBlock >
66
66
67
67
<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 >
87
95
</transition >
88
96
</div >
89
97
</template >
@@ -167,4 +175,15 @@ onBeforeUnmount(() => {
167
175
});
168
176
</script >
169
177
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 >
You can’t perform that action at this time.
0 commit comments