Skip to content

Commit

Permalink
fix: updated styling
Browse files Browse the repository at this point in the history
  • Loading branch information
impelcrypto committed Jan 2, 2025
1 parent 2ec1cdf commit c7aa1dd
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/assets/img/chain/soneium-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 22 additions & 4 deletions src/components/assets/EvmNativeToken.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,26 @@
:to="buildCcipBridgePageLink()"
:is-disabled="!isEnableCcipBridge"
>
<button class="btn btn--icon">
<button
v-if="width >= screenSize.sm"
class="btn btn--icon"
@mouseover="isSoneiumButtonHover = true"
@mouseleave="isSoneiumButtonHover = false"
>
<img
class="img--logo-soneium"
:src="require('src/assets/img/chain/soneium-color.svg')"
:src="
isSoneiumButtonHover
? require('src/assets/img/chain/soneium-white.svg')
: require('src/assets/img/chain/soneium-color.svg')
"
alt="soneium"
/>
</button>
<button v-else class="btn btn--icon">
<img
class="img--logo-soneium"
:src="require('src/assets/img/chain/soneium-white.svg')"
alt="soneium"
/>
</button>
Expand All @@ -78,9 +94,9 @@
:is-disabled="!layerZeroBridgeEnabled"
>
<button class="btn btn--icon"><astar-icon-bridge /></button>
<span class="text--mobile-menu">{{ $t('assets.bridge') }}</span>
<span class="text--mobile-menu">{{ $t('assets.bridgeToZkEvm') }}</span>
<q-tooltip>
<span class="text--tooltip">{{ $t('assets.bridge') }}</span>
<span class="text--tooltip">{{ $t('assets.bridgeToZkEvm') }}</span>
</q-tooltip>
</custom-router-link>

Expand Down Expand Up @@ -192,6 +208,7 @@ export default defineComponent({
const isCcipBalloon = ref<boolean>(false);
const isBalloonClosing = ref<boolean>(false);
const isSoneiumButtonHover = ref<boolean>(false);
const {
currentNetworkName,
Expand Down Expand Up @@ -306,6 +323,7 @@ export default defineComponent({
isCcipBalloon,
isBalloonClosing,
isAstarEvm,
isSoneiumButtonHover,
closeCcipBalloon,
buildCcipBridgePageLink,
truncate,
Expand Down
1 change: 1 addition & 0 deletions src/components/assets/styles/asset-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@
display: block;
text-align: center;
margin-top: 10px;
width: 80px;
@media (min-width: $sm) {
display: none;
}
Expand Down
1 change: 1 addition & 0 deletions src/i18n/en-US/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ export default {
faucet: 'Faucet',
bridge: 'Bridge',
bridgeToSoneium: 'Bridge to Soneium',
bridgeToZkEvm: 'Bridge to zkEVM',
swap: 'Swap',
manage: 'Manage',
xcm: 'XCM',
Expand Down

0 comments on commit c7aa1dd

Please sign in to comment.