Add fullscreen and help to home navbar (#173)

Closes: #150

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>

Reviewed-on: #173
This commit is contained in:
2024-04-12 19:29:00 -07:00
parent 12f916f646
commit 10ce856e8f
3 changed files with 22 additions and 14 deletions

View File

@@ -149,7 +149,6 @@
serverSettings: {},
otherSettings: {},
isCordova: !!window.cordova,
isFullscreen: false,
uploadUid: null,
uploadDirty: false,
modelLocation: '',
@@ -208,7 +207,7 @@
this.modelLoading = false
})
}
window.onresize = (e) => { this.selectChip('redraw') }
window.onresize = (e) => { if (this.$refs.image_cvs) this.selectChip('redraw') }
},
computed: {
message () {
@@ -471,17 +470,6 @@
}
})
return cvsCoords
},
toggleFullscreen() {
if (document.fullscreenElement) {
document.exitFullscreen().then( () => {
this.isFullscreen = false
})
} else {
app.requestFullscreen().then( () => {
this.isFullscreen = true
})
}
}
}
}