From 6f83969aedf95618a22fddb22e83feae67eafdc7 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 24 Jan 2020 10:12:13 +0100 Subject: [PATCH] Fix upload preview height --- src/app/components/feed/feed.component.sass | 6 ++---- src/app/models/post.ts | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/components/feed/feed.component.sass b/src/app/components/feed/feed.component.sass index 5f16e08..49b8a82 100644 --- a/src/app/components/feed/feed.component.sass +++ b/src/app/components/feed/feed.component.sass @@ -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 diff --git a/src/app/models/post.ts b/src/app/models/post.ts index 3143140..231acb7 100644 --- a/src/app/models/post.ts +++ b/src/app/models/post.ts @@ -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; } }