diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-09 09:30:37 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-09 09:30:37 +0100 |
commit | 3290f37c76784f1b96cefb5d389e48db56033b0a (patch) | |
tree | f383d1ea4ca666ac976c80c9a1277edd2ef0ef7e /client/src/app/shared/forms/markdown-textarea.component.ts | |
parent | 7193ad1044d2dfad8f929f0951f9a3601c056f67 (diff) | |
download | PeerTube-3290f37c76784f1b96cefb5d389e48db56033b0a.tar.gz PeerTube-3290f37c76784f1b96cefb5d389e48db56033b0a.tar.zst PeerTube-3290f37c76784f1b96cefb5d389e48db56033b0a.zip |
Video previews take all the width on mobile
Diffstat (limited to 'client/src/app/shared/forms/markdown-textarea.component.ts')
-rw-r--r-- | client/src/app/shared/forms/markdown-textarea.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/forms/markdown-textarea.component.ts b/client/src/app/shared/forms/markdown-textarea.component.ts index 20f13b28c..2eae1b27e 100644 --- a/client/src/app/shared/forms/markdown-textarea.component.ts +++ b/client/src/app/shared/forms/markdown-textarea.component.ts | |||
@@ -2,7 +2,7 @@ import { Component, forwardRef, Input, OnInit } from '@angular/core' | |||
2 | import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' | 2 | import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' |
3 | import 'rxjs/add/operator/debounceTime' | 3 | import 'rxjs/add/operator/debounceTime' |
4 | import 'rxjs/add/operator/distinctUntilChanged' | 4 | import 'rxjs/add/operator/distinctUntilChanged' |
5 | import { isInMobileView } from '@app/shared/misc/utils' | 5 | import { isInSmallView } from '@app/shared/misc/utils' |
6 | import { MarkdownService } from '@app/videos/shared' | 6 | import { MarkdownService } from '@app/videos/shared' |
7 | import { Subject } from 'rxjs/Subject' | 7 | import { Subject } from 'rxjs/Subject' |
8 | import truncate from 'lodash-es/truncate' | 8 | import truncate from 'lodash-es/truncate' |
@@ -74,7 +74,7 @@ export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit { | |||
74 | } | 74 | } |
75 | 75 | ||
76 | arePreviewsDisplayed () { | 76 | arePreviewsDisplayed () { |
77 | return isInMobileView() === false | 77 | return isInSmallView() === false |
78 | } | 78 | } |
79 | 79 | ||
80 | private updateDescriptionPreviews () { | 80 | private updateDescriptionPreviews () { |