mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-28 12:45:45 +01:00
larger size not on firefox
This commit is contained in:
parent
adb1ff8a6f
commit
55e783fbcc
@ -1,10 +1,11 @@
|
|||||||
angular
|
angular
|
||||||
.module('bit.global')
|
.module('bit.global')
|
||||||
|
|
||||||
.controller('mainController', function ($scope, $state, authService, toastr, i18nService, $analytics) {
|
.controller('mainController', function ($scope, $state, authService, toastr, i18nService, $analytics, utilsService) {
|
||||||
var self = this;
|
var self = this;
|
||||||
self.currentYear = new Date().getFullYear();
|
self.currentYear = new Date().getFullYear();
|
||||||
self.animation = '';
|
self.animation = '';
|
||||||
|
self.isFirefox = utilsService.isFirefox();
|
||||||
|
|
||||||
$scope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) {
|
$scope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) {
|
||||||
if (toParams.animation) {
|
if (toParams.animation) {
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
<script src="app/lock/lockModule.js"></script>
|
<script src="app/lock/lockModule.js"></script>
|
||||||
<script src="app/lock/lockController.js"></script>
|
<script src="app/lock/lockController.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body ng-controller="mainController as main" class="{{main.animation}}">
|
<body ng-controller="mainController as main" class="{{main.animation}}" ng-class="{lg: !main.isFirefox}">
|
||||||
<div ui-view class="main-view"></div>
|
<div ui-view class="main-view"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -12,12 +12,17 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
width: 320px !important;
|
width: 320px;
|
||||||
height: 568px !important;
|
height: 568px;
|
||||||
background-color: @background-color;
|
background-color: @background-color;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.lg {
|
||||||
|
width: 375px;
|
||||||
|
height: 667px;
|
||||||
|
}
|
||||||
|
|
||||||
.main-view {
|
.main-view {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Loading…
Reference in New Issue
Block a user