Skip to content

Commit

Permalink
style(portals): some cosmetic changes in card design
Browse files Browse the repository at this point in the history
  • Loading branch information
4gray committed Sep 8, 2023
1 parent b2fee4b commit 81fde2c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<ng-container *ngIf="items?.length > 0; else noItems">
<div class="grid">
<mat-card
appearance="outlined"
*ngFor="
let item of items | filterBy : searchPhrase() : 'name';
let item of items | filterBy: searchPhrase() : 'name';
trackBy: trackByFn
"
(click)="itemClicked.emit(item)"
Expand All @@ -27,7 +28,7 @@
</mat-card>
<div
class="no-content"
*ngIf="!(items | filterBy : searchPhrase() : 'name')?.length"
*ngIf="!(items | filterBy: searchPhrase() : 'name')?.length"
>
<mat-icon class="icon">search</mat-icon>
<div>Nothing found, try to change you search request</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
padding: 20px;
}

mat-card {
overflow: hidden;
transition: all 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

mat-card:hover {
box-shadow: 0 14px 28px rgba(0, 0, 0, 25%), 0 10px 10px rgba(0, 0, 0, 22%);
}

.grid {
display: flex;
flex-wrap: wrap;
Expand Down Expand Up @@ -53,13 +62,3 @@
width: 64px;
}
}

mat-card {
overflow: hidden;

transition: all 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

mat-card:hover {
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
5 changes: 3 additions & 2 deletions src/app/xtream/category-view/category-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ import { PortalStore } from '../portal.store';
<ng-container *ngIf="items?.length > 0; else noItems">
<div class="grid">
<mat-card
appearance="outlined"
class="category-item"
*ngFor="
let item of items
| filterBy : searchText() : 'category_name';
| filterBy: searchText() : 'category_name';
trackBy: trackByFn
"
(click)="categoryClicked.emit(item)"
Expand All @@ -29,7 +30,7 @@ import { PortalStore } from '../portal.store';
<div
class="no-content"
*ngIf="
!(items | filterBy : searchText() : 'category_name')
!(items | filterBy: searchText() : 'category_name')
?.length
"
>
Expand Down

1 comment on commit 81fde2c

@vercel
Copy link

@vercel vercel bot commented on 81fde2c Sep 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

iptvnator – ./

iptvnator-git-electron-4gray.vercel.app
iptvnator.vercel.app
iptvnator-4gray.vercel.app

Please sign in to comment.