1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

Device screen error improved.

This commit is contained in:
Gunther Brunner 2014-05-20 16:24:39 +09:00
parent 0b4e2a0b04
commit d933a65412
4 changed files with 18 additions and 2 deletions

View file

@ -1,8 +1,11 @@
require('./screen.css')
module.exports = angular.module('stf/screen', [
require('stf/screen/scaling').name
, require('stf/util/vendor').name
, require('stf/page-visibility').name
, require('stf/browser-info').name
, require('stf/common-ui/nothing-to-show').name
])
.directive('deviceScreen', require('./screen-directive'))
.controller('DeviceScreenCtrl', require('./screen-controller'))

View file

@ -249,7 +249,6 @@ module.exports = function DeviceScreenDirective($document, ScalingService, Vendo
} else {
scope.fps = null
imageRender.clear()
}
})

View file

@ -0,0 +1,13 @@
.screen-error {
width: 100%;
background: rgba(0, 0, 0, 0.6);
position: relative;
top: 50%;
transform: translateY(-50%);
z-index: 100;
pointer-events: none; /* MUST HAVE */
}
.screen-error .nothing-to-show {
color: #eee;
}

View file

@ -1,4 +1,5 @@
canvas(ng-show='device')
div(ng-if='displayError') Screen error
div(ng-if='displayError').screen-error
nothing-to-show(message='{{"No device screen"|translate}}', icon='fa-eye-slash', ng-show='true')
textarea(tabindex='-1')
span.finger