set change detection on push
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user