From 26f75845bc07b2e4daa2ccb926f93c67271c7c64 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 23 Aug 2017 09:57:04 -0400 Subject: [PATCH] short body for small screens --- src/popup/app/global/mainController.js | 6 ++++-- src/popup/index.html | 3 ++- src/popup/less/popup.less | 5 +++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/popup/app/global/mainController.js b/src/popup/app/global/mainController.js index 1d444af52b..47c4ccaf49 100644 --- a/src/popup/app/global/mainController.js +++ b/src/popup/app/global/mainController.js @@ -1,11 +1,13 @@ angular .module('bit.global') - .controller('mainController', function ($scope, $state, authService, toastr, i18nService, $analytics, utilsService) { + .controller('mainController', function ($scope, $state, authService, toastr, i18nService, $analytics, utilsService, + $window) { var self = this; self.currentYear = new Date().getFullYear(); self.animation = ''; - self.lgBody = !utilsService.isFirefox(); + self.shBody = $window.screen.availHeight < 600; + self.lgBody = !utilsService.isFirefox() && !self.shBody; $scope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) { if (toParams.animation) { diff --git a/src/popup/index.html b/src/popup/index.html index 8b10dc9c86..e867ccdfef 100644 --- a/src/popup/index.html +++ b/src/popup/index.html @@ -95,7 +95,8 @@ - +
diff --git a/src/popup/less/popup.less b/src/popup/less/popup.less index e428ddb79a..370a20e0ec 100644 --- a/src/popup/less/popup.less +++ b/src/popup/less/popup.less @@ -23,6 +23,11 @@ body.lg { height: 667px !important; } +body.sh { + width: 375px !important; + height: 500px !important; +} + .main-view { position: absolute; width: 100%;