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:
parent
7193ad1044
commit
3290f37c76
10 changed files with 49 additions and 14 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue