Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: css - reduce height for nft confirm page #383

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/components/transfer/TransferNFT.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Dialog, DialogOverlay, DialogTitle, TransitionChild, TransitionRoot } f
import { addressSlicer } from "@toruslabs/base-controllers";
import { getChainIdToNetwork } from "@toruslabs/solana-controllers";
import { ExternalLinkIcon } from "@toruslabs/vue-icons/basic";
import BigNumber from "bignumber.js";
// import BigNumber from "bignumber.js";
import { computed, ref } from "vue";
import { useI18n } from "vue-i18n";

Expand Down Expand Up @@ -49,10 +49,10 @@ const props = withDefaults(

const { t } = useI18n();

const currency = computed(() => ControllerModule.torus.currentCurrency);
const pricePerToken = computed<number>((): number => {
return ControllerModule.torus.conversionRate;
});
// const currency = computed(() => ControllerModule.torus.currentCurrency);
// const pricePerToken = computed<number>((): number => {
// return ControllerModule.torus.conversionRate;
// });
const emits = defineEmits(["transferConfirm", "transferReject", "onCloseModal"]);

const closeModal = () => {
Expand All @@ -68,9 +68,9 @@ const onConfirm = () => {
closeModal();
};
// Transaction fee
const fiatTxFeeString = computed(() => {
return `${new BigNumber(props.cryptoTxFee).multipliedBy(pricePerToken.value).toFixed(5).toString()} ${currency.value}`;
});
// const fiatTxFeeString = computed(() => {
// return `${new BigNumber(props.cryptoTxFee).multipliedBy(pricePerToken.value).toFixed(5).toString()} ${currency.value}`;
// });

const explorerUrl = computed(() => {
return `${ControllerModule.torus.blockExplorerUrl}/account/${props.receiverPubKey}/?cluster=${getChainIdToNetwork(ControllerModule.torus.chainId)}`;
Expand Down Expand Up @@ -98,7 +98,7 @@ const refDiv = ref(null);
<div
class="relative inline-block w-full max-w-sm my-8 overflow-hidden text-left align-middle transition-all bg-white dark:bg-app-gray-700 shadow-xl rounded-md px-4"
>
<DialogTitle as="div" class="shadow dark:shadow-dark text-center py-6 w-full">
<DialogTitle as="div" class="hidden tall:block shadow dark:shadow-dark text-center py-6 w-full">
<p class="font-header text-lg font-bold text-app-text-600 dark:text-app-text-dark-500">
{{ t("walletTransfer.confirmTransaction") }}
</p>
Expand Down Expand Up @@ -140,13 +140,13 @@ const refDiv = ref(null);
/>
</div>

<div class="flex flex-row items- justify-start w-full mt-8">
<!-- <div class="flex flex-row items- justify-start w-full mt-8">
<p class="flex flex-auto text-sm font-bold text-app-text-600 dark:text-app-text-dark-500">{{ t("walletTransfer.totalCost") }}</p>
<div class="flex flex-col items-start justify-start">
<p class="text-sm font-bold text-app-text-600 dark:text-app-text-dark-white">{{ props.cryptoTxFee }} SOL</p>
<p class="text-xxs text-app-text-600 dark:text-app-text-dark-600 w-full text-right">~{{ fiatTxFeeString }}</p>
</div>
</div>
</div> -->
<div class="flex flex-row items-center my-6 mx-3">
<Button class="flex-auto mx-2 w-1/2" :block="true" variant="tertiary" @click="onCancel">
{{ t("walletTransfer.cancel") }}
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ module.exports = {
"gt-xs": { min: "440px" }, // mobile
"lt-sm": { max: "640px" }, // less than sm
"lt-md": { max: "768px" }, // less than md
'tall': { 'raw': '(min-height: 700px)' },
},
backgroundImage: {
"gradient-conic": "conic-gradient(transparent, var(--tw-gradient-to))",
Expand Down