Skip to content

Commit

Permalink
Merge pull request kodadot#7818 from prachi00/feat-chain-text
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwao authored Oct 26, 2023
2 parents 04fffb3 + 200f188 commit c805ed0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/common/ChainDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<NeoDropdown>
<template #trigger="{ active }">
<NeoButton
:label="`Network: ${selected?.text}`"
class="chain-dropdown-text"
:label="isMobile ? selected?.text : `Network: ${selected?.text}`"
:icon="active ? 'chevron-up' : 'chevron-down'"
:active="active" />
</template>
Expand All @@ -26,6 +27,7 @@ const route = useRoute()
const { setUrlPrefix } = usePrefix()
const { availableChains } = useChain()
const { redirectAfterChainChange } = useChainRedirect()
const isMobile = computed(() => useWindowSize().width.value <= 764)
const selected = computed(() =>
availableChains.value.find((chain) => chain.value === route.params.prefix),
Expand Down

0 comments on commit c805ed0

Please sign in to comment.