Add realtime rotation info.

This commit is contained in:
Gunther Brunner
2014-05-01 20:01:07 +09:00
parent ea5f848956
commit 069a1fd0da
2 changed files with 8 additions and 1 deletions

View File

@@ -77,6 +77,11 @@ device-screen textarea {
margin-right: 0;
}
.stf-device-control .orientation-degree {
min-width: 34px;
display: inline-block;
}
/* VNC buttons */
.stf-vnc-bottom .btn-primary:hover {
background: rgba(255, 255, 255, 1.0);
@@ -142,4 +147,4 @@ device-screen textarea {
width: 28px;
min-height: 10px;
text-align: center;
}
}

View File

@@ -8,6 +8,8 @@
button(ng-click='control.identify()', tooltip='Find Device', tooltip-placement='bottom').btn.btn-sm.btn-info-outline
i.fa.fa-info
span.orientation-degree {{device.display.orientation}}°
span
button(type='button', ng-click='control.rotate(0)', tooltip='Portrait', tooltip-placement='bottom').btn.btn-sm.btn-primary-outline
i.fa.fa-mobile