Skip to content

Commit

Permalink
How to adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
breslavsky committed Mar 17, 2023
1 parent c5d05d3 commit fcf622e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/app/how-to/how-to.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<video *ngIf="!!howTo" #videoRef autoplay muted loop
[width]="howTo.width"
[height]="howTo.height"
[class.opened]="opened"
(canplay)="loaded()">
[class.opened]="opened">
<source src="{{assetsUrl}}/{{howTo.video}}" type="video/webm">
</video>
8 changes: 2 additions & 6 deletions src/app/how-to/how-to.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,10 @@ $grain-color: #4A4A4A;

video {
display: block;
opacity: 1;

&:not(.opened):not(:hover) {

}

&:not(.opened) {
width: 400px;
cursor: pointer;
width: 600px;
height: auto;
}
}
4 changes: 0 additions & 4 deletions src/app/how-to/how-to.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ export class HowToComponent {
constructor(private hostRef: ElementRef) {
}

loaded() {
console.log(this.videoRef.nativeElement.duration);
}

@HostListener('click')
open() {
this.opened = !this.opened;
Expand Down

0 comments on commit fcf622e

Please sign in to comment.