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

@ -55,15 +55,20 @@ function dateToHuman (date: string) {
return datePipe.transform(date, 'medium')
}
function isInMobileView () {
function isInSmallView () {
return window.innerWidth < 600
}
function isInMobileView () {
return window.innerWidth < 500
}
export {
viewportHeight,
getParameterByName,
populateAsyncUserVideoChannels,
getAbsoluteAPIUrl,
dateToHuman,
isInSmallView,
isInMobileView
}