From 693c6a1eafcf754cabdd0abc715e49549888475a Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 3 Jan 2025 17:02:46 +0530 Subject: [PATCH] fix: lead/deal details tab breaking in mobile view --- frontend/src/pages/MobileDeal.vue | 243 +++++++++++++----------------- frontend/src/pages/MobileLead.vue | 31 ++-- 2 files changed, 111 insertions(+), 163 deletions(-) diff --git a/frontend/src/pages/MobileDeal.vue b/frontend/src/pages/MobileDeal.vue index 5a8d341b..cfb86ed3 100644 --- a/frontend/src/pages/MobileDeal.vue +++ b/frontend/src/pages/MobileDeal.vue @@ -58,155 +58,115 @@ @updateField="updateField" />
-
+
-
- - -
-
- - {{ __('Loading...') }} -
-
-
-
- +
+ + {{ __('Loading...') }} +
+
+
+
+
-
-
- {{ __('No contacts added') }} -
+ class="flex flex-col gap-1.5 text-base text-ink-gray-8" + > +
+ + {{ contact.email }} +
+
+ + {{ contact.mobile_no }} +
+
+
-
+
+
+
+ {{ __('No contacts added') }} +
-
+
{ }) const { tabIndex } = useActiveTabManager(tabs, 'lastDealTab') -const fieldsLayout = createResource({ +const sections = createResource({ url: 'crm.fcrm.doctype.crm_fields_layout.crm_fields_layout.get_sidepanel_sections', cache: ['sidePanelSections', 'CRM Deal'], params: { doctype: 'CRM Deal' }, @@ -593,7 +552,7 @@ const dealContacts = createResource({ cache: ['deal_contacts', props.dealId], auto: true, onSuccess: (data) => { - let contactSection = fieldsLayout.data?.find( + let contactSection = sections.data?.find( (section) => section.name == 'contacts_section', ) if (!contactSection) return diff --git a/frontend/src/pages/MobileLead.vue b/frontend/src/pages/MobileLead.vue index f079d1b0..6a2b7ea6 100644 --- a/frontend/src/pages/MobileLead.vue +++ b/frontend/src/pages/MobileLead.vue @@ -63,26 +63,16 @@ @updateField="updateField" />
-
-
-
- -
-
-
+
{ } }) -const fieldsLayout = createResource({ +const sections = createResource({ url: 'crm.fcrm.doctype.crm_fields_layout.crm_fields_layout.get_sidepanel_sections', cache: ['sidePanelSections', 'CRM Lead'], params: { doctype: 'CRM Lead' },