diff --git a/outlook/src/classes/Lead.ts b/outlook/src/classes/Lead.ts index cbf0436..d0bfba5 100644 --- a/outlook/src/classes/Lead.ts +++ b/outlook/src/classes/Lead.ts @@ -7,9 +7,18 @@ class Lead { static fromJSON(o: Object): Lead { var lead = new Lead(); lead.id = o['id']; - lead.name = o['name']; - lead.expectedRevenue = o['expected_revenue']; + lead.name = o['name'];; lead.logged = o['logged']; + + let expectedRevenue = o['expected_revenue']; + // Detects 00 decimals and remove them to make more space a reduce noise. + if (expectedRevenue.search(/\.00\D*$/) != -1) { // if it ends with ".00" or ".00 $" or ".00 €", etc. + expectedRevenue = expectedRevenue.replace(/\.00/, ''); + } else if (expectedRevenue.search(/,00\D*$/) != -1) { // if it ends with ",00" or ",00 $" or ",00 €", etc. + expectedRevenue = expectedRevenue.replace(/,00/, ''); + } + lead.expectedRevenue = expectedRevenue; + return lead; } diff --git a/outlook/src/taskpane/components/Company/CompanyInsights.tsx b/outlook/src/taskpane/components/Company/CompanyInsights.tsx index deddad0..dcbbde0 100644 --- a/outlook/src/taskpane/components/Company/CompanyInsights.tsx +++ b/outlook/src/taskpane/components/Company/CompanyInsights.tsx @@ -36,6 +36,7 @@ const classNames: IListGhostingExampleClassObject = mergeStyleSets({ borderBottom: `1px solid ${semanticColors.bodyDivider}`, display: "flex", /*cursor: 'pointer',*/ + /* selectors: { "&:hover .CompanyInsightValue": { whiteSpace: "normal", @@ -43,7 +44,7 @@ const classNames: IListGhostingExampleClassObject = mergeStyleSets({ textOverflow: "-", overflowWrap: "break-word" } - } + }*/ } ], itemImage: { @@ -63,12 +64,14 @@ const classNames: IListGhostingExampleClassObject = mergeStyleSets({ marginLeft: "1em" }, itemIndex: [ + /* fonts.medium, { whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" } + */ /*marginBottom: 10*/ ], chevron: { diff --git a/outlook/src/taskpane/components/Leads/LeadList/LeadList.css b/outlook/src/taskpane/components/Leads/LeadList/LeadList.css index 0eac607..dd2acef 100644 --- a/outlook/src/taskpane/components/Leads/LeadList/LeadList.css +++ b/outlook/src/taskpane/components/Leads/LeadList/LeadList.css @@ -20,13 +20,15 @@ .opportunity .title { /*border: 1px solid red;*/ width: 200px; + /* overflow: hidden; white-space: nowrap; text-overflow: ellipsis; + */ } .opportunity .title:hover { - white-space: normal; + /*white-space: normal;*/ } .opportunity .price {