File tree Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 4839
4839
"message" : " Uploaded all {{length}} characters to the OSD"
4840
4840
},
4841
4841
4842
+ "osdToggleOrientation" : {
4843
+ "message" : " Orientation"
4844
+ },
4842
4845
"osdSetupSave" : {
4843
4846
"message" : " Save"
4844
4847
},
Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ button {
541
541
@media all and (max-width : 575px ) {
542
542
.tab-osd {
543
543
.osd-preview {
544
- min- width : 100 % ;
544
+ width : fit-content ;
545
545
order : 1 ;
546
546
}
547
547
.osd-feature {
Original file line number Diff line number Diff line change @@ -2609,6 +2609,8 @@ osd.initialize = function(callback) {
2609
2609
// must invoke before i18n.localizePage() since it adds translation keys for expected logo size
2610
2610
LogoManager . init ( FONT , SYM . LOGO ) ;
2611
2611
2612
+ $ ( 'div.btn.orientation' ) . toggle ( GUI . isCordova ( ) ) ;
2613
+
2612
2614
// translate to user-selected language
2613
2615
i18n . localizePage ( ) ;
2614
2616
@@ -3281,6 +3283,8 @@ osd.initialize = function(callback) {
3281
3283
self . analyticsChanges = { } ;
3282
3284
} ) ;
3283
3285
3286
+ $ ( 'a.orientation' ) . on ( 'click' , ( ) => screen . orientation . lock ( screen . orientation . type . startsWith ( "portrait" ) ? "landscape" : "portrait" ) ) ;
3287
+
3284
3288
// font preview window
3285
3289
const fontPreviewElement = $ ( '.font-preview' ) ;
3286
3290
@@ -3411,6 +3415,10 @@ osd.cleanup = function(callback) {
3411
3415
OSD . GUI . fontManager . destroy ( ) ;
3412
3416
}
3413
3417
3418
+ if ( GUI . isCordova ( ) ) {
3419
+ window . screen . orientation . lock ( "portrait" ) ;
3420
+ }
3421
+
3414
3422
// unbind "global" events
3415
3423
$ ( document ) . unbind ( 'keypress' ) ;
3416
3424
$ ( document ) . off ( 'click' , 'span.progressLabel a' ) ;
Original file line number Diff line number Diff line change @@ -197,6 +197,9 @@ <h3 i18n="osdSetupCustomLogoInfoTitle"></h3>
197
197
198
198
< div class ="supported hide ">
199
199
< div class ="content_toolbar " style ="left:0; ">
200
+ < div class ="btn orientation ">
201
+ < a class ="orientation " href ="# " i18n ="osdToggleOrientation "> </ a >
202
+ </ div >
200
203
< div class ="btn ">
201
204
< a class ="requires-max7456-font-device-detected fonts " id ="fontmanager " href ="# " i18n ="osdSetupFontManager "> </ a >
202
205
</ div >
You can’t perform that action at this time.
0 commit comments