Skip to content

Commit

Permalink
Prestaking Button & preview in addressOverview
Browse files Browse the repository at this point in the history
responsive behavior finetuning
  • Loading branch information
mraveux committed Jun 12, 2024
1 parent eebe77b commit 9d171b3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/layouts/AddressOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
/>

<template v-if="activeCurrency === 'nim'"> <!-- TODO: show preview if prestaking-->
<PrestakingPreview v-if="activePrestake" />
<PrestakingPreview v-if="activePrestake && windowWidth > 860" />
<PrestakingButton v-else />
</template>

Expand Down Expand Up @@ -316,7 +316,7 @@ export default defineComponent({
const address$ = ref<HTMLDivElement>(null);
const addressMasked = ref<boolean>(false);
const { isMobile, isFullDesktop } = useWindowSize();
const { isMobile, isFullDesktop, width: windowWidth } = useWindowSize();
useElementResize(address$, () => {
let addressWidth: number;
Expand Down Expand Up @@ -550,6 +550,7 @@ export default defineComponent({
config,
convertBridgedUsdcToNative,
activePrestake,
windowWidth,
};
},
components: {
Expand Down Expand Up @@ -944,6 +945,10 @@ export default defineComponent({
}
}
.prestaking-button {
margin-left: 1rem;
}
.send, .receive {
margin: 0 0.5rem;
align-items: center;
Expand Down

0 comments on commit 9d171b3

Please sign in to comment.