Fix upload preview height

master
Max 4 years ago
parent 8e431e2f47
commit 6f83969aed

@ -34,16 +34,14 @@
.mat-icon
transform: scale(1.5)
#inputPreview
max-width: 75%
max-height: 100%
max-width: 100%
max-height: 40vh
width: auto
border-radius: 4px
mask-mode: luminance
outline: none
user-select: none
::ng-deep video
width: 100%
max-height: 40vh
outline: none
user-select: none
#inputPreviewWrapper

@ -1,5 +1,6 @@
import {Author} from './author';
import {Activity} from './activity';
import { environment } from 'src/environments/environment';
export class Post {
id: number;
@ -39,7 +40,7 @@ export class Post {
this.author = author;
this.activity = activity;
if (media) {
this.mediaUrl = media.url;
this.mediaUrl = environment.greenvironmentUrl + media.url;
this.mediaType = media.type;
}
}

Loading…
Cancel
Save