Skip to content

Commit

Permalink
mages are stretching on content list page
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratikshakhandagale committed Aug 14, 2024
1 parent 0615652 commit 96c221b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/pages/home/home.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</ion-item>
</ion-list>
<!-- Cards -->
<ion-list *ngIf="!showSheenAnimation && configContents.length > 0">
<ion-list id="content-list" *ngIf="!showSheenAnimation && configContents.length > 0">
<div class="cards-container" *ngFor="let content of configContents; let i = index">
<!-- <div class="bot-section" *ngIf="i === 5">
<div class="image" (click)="navigateToSakhi('story')">
Expand Down Expand Up @@ -80,4 +80,4 @@
<ion-infinite-scroll (ionInfinite)="onIonInfinite($event)" *ngIf="!showSheenAnimation && configContents.length > 0">
<ion-infinite-scroll-content></ion-infinite-scroll-content>
</ion-infinite-scroll>
</ion-content>
</ion-content>
22 changes: 21 additions & 1 deletion src/assets/styles/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,24 @@

.no-data {
text-align: center;
}
}

#content-list{
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(5, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px;
}

@media (max-width: 700px) {

#content-list{
display: grid;
grid-template-columns: repeat(1, 1fr);
grid-template-rows: repeat(5, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px;
}

}

0 comments on commit 96c221b

Please sign in to comment.