]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/misc/utils.ts
Video previews take all the width on mobile
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / misc / utils.ts
index 0e6e6b3661eb6fbe4bffcf7989bc98fd374a51e9..6620ac9737f5fe5678c125d32cd6d36d26b4811f 100644 (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
 }