diff --git a/dashboard/src/components/billing/AddPrepaidCreditsDialog.vue b/dashboard/src/components/billing/AddPrepaidCreditsDialog.vue index 365700b..a76eddc 100644 --- a/dashboard/src/components/billing/AddPrepaidCreditsDialog.vue +++ b/dashboard/src/components/billing/AddPrepaidCreditsDialog.vue @@ -1,15 +1,25 @@ \ No newline at end of file +const windowWidth = ref(window.innerWidth); + +const isMobile = computed(() => windowWidth.value <= 768); +const modalStyle = computed(() => ({ + width: isMobile.value ? '95vw' : '700px', + maxWidth: isMobile.value ? '95vw' : '90vw', +})); + +function handleResize() { + windowWidth.value = window.innerWidth; +} + +onMounted(() => { + handleResize(); + window.addEventListener('resize', handleResize); +}); + +onUnmounted(() => { + window.removeEventListener('resize', handleResize); +}); + + + \ No newline at end of file diff --git a/dashboard/src/components/billing/BillingDetailsDialog.vue b/dashboard/src/components/billing/BillingDetailsDialog.vue index 80e3b97..17b7c18 100644 --- a/dashboard/src/components/billing/BillingDetailsDialog.vue +++ b/dashboard/src/components/billing/BillingDetailsDialog.vue @@ -1,13 +1,25 @@ \ No newline at end of file +const windowWidth = ref(window.innerWidth); + +const isMobile = computed(() => windowWidth.value <= 768); +const modalStyle = computed(() => ({ + width: isMobile.value ? '95vw' : '700px', + maxWidth: isMobile.value ? '95vw' : '90vw', +})); + +function handleResize() { + windowWidth.value = window.innerWidth; +} + +onMounted(() => { + handleResize(); + window.addEventListener('resize', handleResize); +}); + +onUnmounted(() => { + window.removeEventListener('resize', handleResize); +}); + + + \ No newline at end of file diff --git a/dashboard/src/components/billing/PaymentDetails.vue b/dashboard/src/components/billing/PaymentDetails.vue index 6adaf05..906f59a 100644 --- a/dashboard/src/components/billing/PaymentDetails.vue +++ b/dashboard/src/components/billing/PaymentDetails.vue @@ -1,56 +1,65 @@