Update BuyerFlow responsive screen

This commit is contained in:
enzoggqs 2023-01-27 18:33:00 -03:00
parent c626a650b8
commit 6e08578038
4 changed files with 28 additions and 10 deletions

View File

@ -16,7 +16,7 @@ const emit = defineEmits(["makeAnotherTransaction"]);
<template>
<div class="page">
<div class="text-container">
<span class="text font-extrabold text-5xl max-w-[50rem]"
<span class="text font-extrabold sm:text-5xl text-xl max-w-[50rem]"
>Os tokens foram transferidos <br />
para a sua carteira!
</span>
@ -30,8 +30,8 @@ const emit = defineEmits(["makeAnotherTransaction"]);
<p class="text-2xl text-gray-900">{{ props.tokenAmount }} BRZ</p>
</div>
<div class="my-5">
<p>
<b>Não encontrou os tokens? </b>Clique no botão abaixo para <br />
<p class="text-sm">
<b>Não encontrou os tokens? </b><br/>Clique no botão abaixo para <br />
cadastrar o BRZ em sua carteira.
</p>
</div>
@ -48,18 +48,21 @@ const emit = defineEmits(["makeAnotherTransaction"]);
Fazer nova transação
</button>
</div>
<div class="text-container mt-16">
<div class="text-container mt-16 lg-view">
<span class="text font-extrabold text-3xl max-w-[50rem]"
>Histórico de compras
</span>
</div>
<div class="w-full max-w-4xl">
<div class="w-full max-w-4xl lg-view">
<ListingComponent
:walletTransactions="lastWalletReleaseTransactions"
:isManageMode="false"
>
</ListingComponent>
</div>
<RouterLink to="/transaction_history" class="mt-8 text-white text-2xl font-bold">
Gerenciar Transações
</RouterLink>
</div>
</template>
@ -99,4 +102,22 @@ input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
}
.lg-view {
display: inline-block;
}
.sm-view {
display: none;
}
@media screen and (max-width: 500px) {
.lg-view {
display: none;
}
.sm-view {
display: inline-block;
}
}
</style>

View File

@ -1,7 +1,4 @@
<script setup lang="ts">
const props = defineProps({
showModal: Boolean,
});
</script>
<template>

View File

@ -3,7 +3,7 @@ import { pix } from "../utils/QrCodePix";
import { ref } from "vue";
import { debounce } from "@/utils/debounce";
import CustomButton from "./CustomButton.vue";
import AttentionModal from "./AttentionModal.vue";
import AttentionModal from "./CustomModal.vue";
import api from "../services/index";
// props and store references

View File

@ -155,7 +155,7 @@ const getNetworkImage = (networkName: NetworkEnum): string => {
</div>
<div
v-show="currencyMenuOpenToggle"
class="mt-10 pl-3 absolute w-full text-gray-900 lg-view"
class="mt-10 pl-3 absolute w-full text-gray-900"
>
<div class="mt-2">
<div class="bg-white rounded-md z-10">