From 3290f37c76784f1b96cefb5d389e48db56033b0a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 9 Feb 2018 09:30:37 +0100 Subject: Video previews take all the width on mobile --- client/src/app/shared/misc/utils.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared/misc/utils.ts') diff --git a/client/src/app/shared/misc/utils.ts b/client/src/app/shared/misc/utils.ts index 0e6e6b366..6620ac973 100644 --- a/client/src/app/shared/misc/utils.ts +++ b/client/src/app/shared/misc/utils.ts @@ -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 } -- cgit v1.2.3