Skip to content

Commit

Permalink
fixed the zero state expense (#3359)
Browse files Browse the repository at this point in the history
Co-authored-by: Palguna M S <[email protected]>
  • Loading branch information
palgunams1603 and Palguna M S authored Dec 17, 2024
1 parent 34e84cb commit cb9cd69
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/fyle/my-expenses/my-expenses.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,14 @@
</ng-container>
</app-fy-header>

<ion-content [ngClass]="{'d-none': isCameraPreviewStarted}" class="my-expenses--content" (click)="onPageClick()">
<ion-content
[ngClass]="{
'd-none': isCameraPreviewStarted,
'my-expenses--content-zero-state': ((pendingTransactions.length === 0) && ((count$ | async) === 0) && isConnected$ | async)
}"
class="my-expenses--content"
(click)="onPageClick()"
>
<div
class="my-expenses--body"
[ngClass]="{'my-expenses--zero-states-body': (((count$ | async) === 0) && isConnected$|async) || (pendingTransactions.length === 0 && !(isConnected$|async))}"
Expand Down
5 changes: 5 additions & 0 deletions src/app/fyle/my-expenses/my-expenses.page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
--padding-bottom: 82px;
}

&--content-zero-state {
--padding-bottom: 0;
}

&--select-all-container {
--border-style: none;
}
Expand Down Expand Up @@ -280,6 +284,7 @@

&--zero-states-body {
height: 100%;
padding-top: 32px;
}

&--footer-toolbar {
Expand Down

0 comments on commit cb9cd69

Please sign in to comment.