diff options
Diffstat (limited to 'client/src/app/shared/misc/screen.service.ts')
-rw-r--r-- | client/src/app/shared/misc/screen.service.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/shared/misc/screen.service.ts b/client/src/app/shared/misc/screen.service.ts index 9c71a8c83..fa9c71e5b 100644 --- a/client/src/app/shared/misc/screen.service.ts +++ b/client/src/app/shared/misc/screen.service.ts | |||
@@ -10,7 +10,12 @@ export class ScreenService { | |||
10 | this.refreshWindowInnerWidth() | 10 | this.refreshWindowInnerWidth() |
11 | } | 11 | } |
12 | 12 | ||
13 | isInSmallView () { | 13 | isInSmallView (marginLeft = 0) { |
14 | if (marginLeft > 0) { | ||
15 | const contentWidth = this.getWindowInnerWidth() - marginLeft | ||
16 | return contentWidth < 800 | ||
17 | } | ||
18 | |||
14 | return this.getWindowInnerWidth() < 800 | 19 | return this.getWindowInnerWidth() < 800 |
15 | } | 20 | } |
16 | 21 | ||