set change detection on push

This commit is contained in:
2023-03-26 23:34:49 +02:00
parent 138b0b42b3
commit 383d2a533b
13 changed files with 76 additions and 46 deletions

View File

@@ -1,4 +1,4 @@
import {Component, Input} from '@angular/core';
import {ChangeDetectionStrategy, Component, Input} from '@angular/core';
import {UntypedFormControl} from '@angular/forms';
import {filterSong} from '../../../services/filter.helper';
import {MatSelectChange} from '@angular/material/select';
@@ -12,6 +12,7 @@ import {ShowService} from '../../../modules/shows/services/show.service';
selector: 'app-add-song',
templateUrl: './add-song.component.html',
styleUrls: ['./add-song.component.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AddSongComponent {
@Input() public songs: Song[] | null = null;

View File

@@ -3,16 +3,17 @@
.card {
margin: 20px;
border-radius: 8px;
background: #fffe;
background: #fffc;
backdrop-filter: blur(12px);
overflow: hidden;
width: 800px;
position: relative;
transition: all 150ms ease-in-out;
@media screen and (max-width: 860px) {
width: 100vw;
border-radius: 0;
background: #fffe;
background: #ffff;
margin: 0;
}