From 72756d812d221b8a81b057141976232cb266a3f1 Mon Sep 17 00:00:00 2001 From: Sultan Khan Date: Thu, 8 Jul 2021 12:44:37 +0300 Subject: [PATCH] fixes --- Mohem/package.json | 2 +- .../app/offersdiscount/filter/filter.component.html | 2 +- .../app/offersdiscount/filter/filter.component.scss | 7 ++++++- Mohem/src/app/offersdiscount/home/home.component.scss | 2 +- .../offer-details/offer-details.component.html | 2 +- .../offer-details/offer-details.component.ts | 10 +++++++++- 6 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Mohem/package.json b/Mohem/package.json index 8d76c7a1..3c30b679 100644 --- a/Mohem/package.json +++ b/Mohem/package.json @@ -225,4 +225,4 @@ "ios" ] } -} +} \ No newline at end of file diff --git a/Mohem/src/app/offersdiscount/filter/filter.component.html b/Mohem/src/app/offersdiscount/filter/filter.component.html index b3381b50..9a97fb8c 100644 --- a/Mohem/src/app/offersdiscount/filter/filter.component.html +++ b/Mohem/src/app/offersdiscount/filter/filter.component.html @@ -10,7 +10,7 @@
- + {{key.name}} diff --git a/Mohem/src/app/offersdiscount/filter/filter.component.scss b/Mohem/src/app/offersdiscount/filter/filter.component.scss index 39bebf2a..e8e8a3bc 100644 --- a/Mohem/src/app/offersdiscount/filter/filter.component.scss +++ b/Mohem/src/app/offersdiscount/filter/filter.component.scss @@ -12,7 +12,7 @@ ion-thumbnail img{ top: 15px; padding: 0px; background: #3cc353; - padding: 3px 2px 2px 3px; + padding: 3px 2px 0px 3px; border-radius: 60%; font-size: 12px; color: #fff; @@ -22,6 +22,11 @@ ion-thumbnail img{ text-align: center; z-index: 2; } +ion-item{ + border-bottom: 1px solid #ccc; + --padding-start: 0px; + margin: 0 20px 4px 20px; +} .footer-button{ background: var(--newgreen)!important;border-radius: 10px; --background: transparent; diff --git a/Mohem/src/app/offersdiscount/home/home.component.scss b/Mohem/src/app/offersdiscount/home/home.component.scss index 10d5a0a1..050cdf8a 100644 --- a/Mohem/src/app/offersdiscount/home/home.component.scss +++ b/Mohem/src/app/offersdiscount/home/home.component.scss @@ -172,7 +172,7 @@ ion-content{ position: relative; } .top img{ - + width: 35px; height: 35px; margin: 5px 5px 0px 5px; } diff --git a/Mohem/src/app/offersdiscount/offer-details/offer-details.component.html b/Mohem/src/app/offersdiscount/offer-details/offer-details.component.html index bfbcfcf9..f3a127c8 100644 --- a/Mohem/src/app/offersdiscount/offer-details/offer-details.component.html +++ b/Mohem/src/app/offersdiscount/offer-details/offer-details.component.html @@ -58,7 +58,7 @@

- +
diff --git a/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts b/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts index 1ae6f38d..781d2472 100644 --- a/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts +++ b/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts @@ -35,8 +35,16 @@ export class OfferDetailsComponent implements OnInit { return temporalDivElement.textContent || temporalDivElement.innerText || ""; } share() { - this.socialSharing.share(this.details.Description, this.details.Title, this.details.Banner_Image).then((result) => { + this.socialSharing.share(this.stripHtml(this.details.Description), this.stripHtml(this.details.Title), this.details.Banner_Image).then((result) => { console.log(result); }) } + openRelated(item) { + this.cs.sharedService.setSharedData(item, OfferDiscountService.selected_offers); + this.cs.back(); + setTimeout(() => { + this.cs.navigateForward('/offersdiscount/offer-details'); + }, 200); + + } }