From b9c6be20b862e66c2c696289f25297d5902f68bc Mon Sep 17 00:00:00 2001 From: SahilK-027 Date: Mon, 13 Jan 2025 11:20:21 +0530 Subject: [PATCH] chore: Cleanup & Fixes from Display Exact Amount --- .../fyle/my-advances/my-advances.page.html | 2 +- .../fyle/my-expenses/my-expenses.page.html | 2 -- src/app/fyle/my-reports/my-reports.page.html | 2 +- .../fyle/team-advance/team-advance.page.html | 2 +- .../expenses-card.component.html | 5 ++++- .../expenses-card.component.scss | 6 ++++++ .../fy-loading-screen.component.html | 21 ++++++------------- .../fy-loading-screen.component.scss | 17 +++------------ .../fy-loading-screen.component.ts | 3 --- 9 files changed, 22 insertions(+), 38 deletions(-) diff --git a/src/app/fyle/my-advances/my-advances.page.html b/src/app/fyle/my-advances/my-advances.page.html index 154cabeed8..5b45b74e92 100644 --- a/src/app/fyle/my-advances/my-advances.page.html +++ b/src/app/fyle/my-advances/my-advances.page.html @@ -36,7 +36,7 @@ - +
diff --git a/src/app/fyle/my-expenses/my-expenses.page.html b/src/app/fyle/my-expenses/my-expenses.page.html index 407b4556d3..abf89f4b8a 100644 --- a/src/app/fyle/my-expenses/my-expenses.page.html +++ b/src/app/fyle/my-expenses/my-expenses.page.html @@ -121,7 +121,6 @@ @@ -213,7 +212,6 @@ diff --git a/src/app/fyle/my-reports/my-reports.page.html b/src/app/fyle/my-reports/my-reports.page.html index bef8ea5ec1..bda5d9237f 100644 --- a/src/app/fyle/my-reports/my-reports.page.html +++ b/src/app/fyle/my-reports/my-reports.page.html @@ -72,7 +72,7 @@ - +
- +
diff --git a/src/app/shared/components/expenses-card-v2/expenses-card.component.html b/src/app/shared/components/expenses-card-v2/expenses-card.component.html index c60a3a794f..531ed22b50 100644 --- a/src/app/shared/components/expenses-card-v2/expenses-card.component.html +++ b/src/app/shared/components/expenses-card-v2/expenses-card.component.html @@ -113,7 +113,10 @@ -
+
diff --git a/src/app/shared/components/expenses-card-v2/expenses-card.component.scss b/src/app/shared/components/expenses-card-v2/expenses-card.component.scss index 0ae93ab8e0..e129f13faf 100644 --- a/src/app/shared/components/expenses-card-v2/expenses-card.component.scss +++ b/src/app/shared/components/expenses-card-v2/expenses-card.component.scss @@ -36,6 +36,10 @@ bottom: 0; left: 68px; transform: translate(-50%, -50%); + + &__shift { + left: 96px; + } } &--checkbox-container { @@ -77,6 +81,7 @@ font-size: 16px; line-height: 1.3; white-space: nowrap; + margin-left: 6px; &-scanning { color: $green; } @@ -102,6 +107,7 @@ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; + margin-left: 6px; } } diff --git a/src/app/shared/components/fy-loading-screen/fy-loading-screen.component.html b/src/app/shared/components/fy-loading-screen/fy-loading-screen.component.html index 2289f61c7e..787402fecd 100644 --- a/src/app/shared/components/fy-loading-screen/fy-loading-screen.component.html +++ b/src/app/shared/components/fy-loading-screen/fy-loading-screen.component.html @@ -1,30 +1,21 @@ - - + - +
- - -
+ +
- + - +
diff --git a/src/app/shared/components/fy-loading-screen/fy-loading-screen.component.scss b/src/app/shared/components/fy-loading-screen/fy-loading-screen.component.scss index f63dda1396..a6973ae662 100644 --- a/src/app/shared/components/fy-loading-screen/fy-loading-screen.component.scss +++ b/src/app/shared/components/fy-loading-screen/fy-loading-screen.component.scss @@ -1,14 +1,9 @@ @import '../../../../theme/colors.scss'; .loading-screen-container { - padding: 16px; + padding: 12px; border-bottom: 1px solid $grey-lighter; - // TODO: Remove `new-loader-enabled` class and update padding of parent class `loading-screen-container` once all list views are updated to the new designs - &.new-loader-enabled { - padding: 12px; - } - &--checkbox { margin-top: 30px; height: 20px; @@ -17,15 +12,9 @@ } &--icon { - height: 74px; - width: 72px; + height: 72px; + width: 56px; border-radius: 8px; - - // TODO: Remove `new-loader-enabled` class and update height &width of parent class `--icon` once all list views are updated to the new designs - &.new-loader-enabled { - height: 72px; - width: 56px; - } } &--content-block { diff --git a/src/app/shared/components/fy-loading-screen/fy-loading-screen.component.ts b/src/app/shared/components/fy-loading-screen/fy-loading-screen.component.ts index f367cad160..1db6167275 100644 --- a/src/app/shared/components/fy-loading-screen/fy-loading-screen.component.ts +++ b/src/app/shared/components/fy-loading-screen/fy-loading-screen.component.ts @@ -8,9 +8,6 @@ import { Component, OnInit, Input } from '@angular/core'; export class FyLoadingScreenComponent implements OnInit { @Input() isSelectionModeEnabled: boolean; - // TODO: Remove `isLegacyLoaderEnabled` input property once all list views are updated to the new designs as per the 'display_exact_amount_on_stats' specification. - @Input() isNewLoaderEnabled?: boolean; - rows = [1, 2, 3, 4, 5]; ngOnInit(): void {