1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Video previews take all the width on mobile

This commit is contained in:
Chocobozzz 2018-02-09 09:30:37 +01:00
parent 7193ad1044
commit 3290f37c76
No known key found for this signature in database
GPG key ID: 583A612D890159BE
10 changed files with 49 additions and 14 deletions

View file

@ -2,7 +2,7 @@ import { Component, forwardRef, Input, OnInit } from '@angular/core'
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
import 'rxjs/add/operator/debounceTime'
import 'rxjs/add/operator/distinctUntilChanged'
import { isInMobileView } from '@app/shared/misc/utils'
import { isInSmallView } from '@app/shared/misc/utils'
import { MarkdownService } from '@app/videos/shared'
import { Subject } from 'rxjs/Subject'
import truncate from 'lodash-es/truncate'
@ -74,7 +74,7 @@ export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit {
}
arePreviewsDisplayed () {
return isInMobileView() === false
return isInSmallView() === false
}
private updateDescriptionPreviews () {