diff --git a/src/components/Dialogs/confirmDialog.vue b/src/components/Dialogs/confirmDialog.vue index ab6c0db..893e89f 100644 --- a/src/components/Dialogs/confirmDialog.vue +++ b/src/components/Dialogs/confirmDialog.vue @@ -88,16 +88,16 @@ function hideModal(result = null) { .cf-overlay { z-index: 1000; - width: 1140px; - min-height: 500px; + width: 700px; + min-height: 300px; background: #1a1821; color: #fff; position: fixed; - top: 20%; + top: 50%; left: 50%; - transform: translateX(-50%); + transform: translate(-50%, -50%); border: 1px solid #b966ff; - padding: 50px; + padding: 30px; box-sizing: border-box; box-shadow: 0px 15px 28px 3px rgba(22, 22, 22, 0.13); border-radius: 100px; @@ -107,18 +107,18 @@ function hideModal(result = null) { height: 60px; font-family: 'Anton'; font-weight: 400; - font-size: 48px; + font-size: 36px; } } .cf-content-text { - width: 78%; + width: 90%; margin: 0 auto; margin-top: 10px; - text-align: left; + text-align: center; .cf-text { font-family: 'Poppins'; font-weight: 500; - font-size: 28px; + font-size: 22px; } } .cf-btn-grid { @@ -130,13 +130,13 @@ function hideModal(result = null) { display: flex; justify-content: space-evenly; button { - width: 289px; - height: 60px; + width: 180px; + height: 40px; background: #fec25d; border: 0px; font-family: 'Poppins'; font-weight: 700; - font-size: 18px; + font-size: 16px; color: #2D2738; border-radius:30px; } diff --git a/src/components/staking/cecDialog.vue b/src/components/staking/cecDialog.vue index 33d0c28..88c8a40 100644 --- a/src/components/staking/cecDialog.vue +++ b/src/components/staking/cecDialog.vue @@ -22,10 +22,10 @@
{{ props.dialogText.typeLabel }}

- +

-
+
MAX: {{ priceCalculated(props.dialogText.amount) }}

{{ props.dialogText.typeName }}

@@ -35,7 +35,7 @@ {{ props.dialogText.conversion }}

{{ modelAmount }}

-
+
 

{{ props.dialogText.conversionName }}

@@ -69,14 +69,16 @@ const props = defineProps({ // }, }); +const placeholderAmount = ref(0) const emit = defineEmits(["handleClose", "eventBtn"]); const handleCancel = (e) => { + modelAmount.value = 0 emit("handleClose"); }; const eventBtn = () => { if(modelAmount.value == 0) { - message.error('Please enter the corresponding number') + message.error('Please enter the amount') } else { emit("eventBtn",{title:props.dialogText.title, amount: modelAmount.value}); } @@ -87,19 +89,27 @@ const cecAmount = () => { modelAmount.value = priceCalculated(props.dialogText.amount) } +const handleInput = (e) => { + if(Number(modelAmount.value) > Number(priceCalculated(props.dialogText.amount))) { + modelAmount.value = priceCalculated(props.dialogText.amount) + } else if(Number(modelAmount.value) == 0 || Number(modelAmount.value) < 0) { + modelAmount.value= 0 + } +} + \ No newline at end of file