update some icons and stuff
This commit is contained in:
@@ -145,7 +145,7 @@ Viewer.prototype.renderSponsorsSimple = function() {
|
||||
if (window.innerHeight < minWindowHeight) {
|
||||
scaleHeight = window.innerHeight/minWindowHeight
|
||||
}
|
||||
|
||||
|
||||
let scale = scaleWidth < scaleHeight ? scaleWidth : scaleHeight
|
||||
document.querySelector(".sponsors").style.height = (scale*bannerHeight)+"px"
|
||||
}
|
||||
@@ -186,7 +186,7 @@ Viewer.prototype.renderSponsorsSimple = function() {
|
||||
// }
|
||||
|
||||
Viewer.prototype.keyboardEvent = function(evt) {
|
||||
if (evt.ctrlKey || evt.altKey) {
|
||||
if (evt.ctrlKey || evt.altKey || evt.metaKey) {
|
||||
return // prevent custom shortcuts from interfering with system shortcuts
|
||||
}
|
||||
|
||||
|
@@ -18,7 +18,7 @@ function ImageViewer(viewer, file) {
|
||||
this.element.addEventListener("doubletap", (e) => { return this.doubleclick(e) })
|
||||
this.element.addEventListener("mousedown", (e) => { return this.mousedown(e) })
|
||||
this.element.addEventListener("mousedown", (e) => { return this.mousedown(e) })
|
||||
this.element.addEventListener("wheel", (e) => { return this.scroll(e) })
|
||||
// this.element.addEventListener("wheel", (e) => { return this.scroll(e) })
|
||||
document.addEventListener("mousemove", (e) => { return this.mousemove(e) })
|
||||
document.addEventListener("mouseup", (e) => { return this.mouseup(e) })
|
||||
|
||||
|
@@ -383,7 +383,7 @@ btnCopyMarkdown.addEventListener("click", function(){
|
||||
* Keyboard shortcuts
|
||||
*/
|
||||
document.addEventListener("keydown", function(event){
|
||||
if (event.ctrlKey || event.altKey) {
|
||||
if (event.ctrlKey || event.altKey || event.metaKey) {
|
||||
return // prevent custom shortcuts from interfering with system shortcuts
|
||||
}
|
||||
if (event.keyCode === 67) { // c
|
||||
|
@@ -23,7 +23,7 @@ function uploadText() {
|
||||
|
||||
// Upload the file when ctrl + s is pressed
|
||||
document.addEventListener("keydown", function(event) {
|
||||
if (event.ctrlKey && (event.keyCode === 83)) {
|
||||
if ((event.ctrlKey || event.metaKey) && event.keyCode === 83) {
|
||||
event.preventDefault();
|
||||
uploadText();
|
||||
return false;
|
||||
|
@@ -43,6 +43,7 @@
|
||||
white-space: nowrap;
|
||||
direction: ltr;
|
||||
text-rendering: optimizeLegibility;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.icon.small {
|
||||
font-size: 16px;
|
||||
@@ -320,7 +321,7 @@ pre{
|
||||
|
||||
.big_button{
|
||||
width: 40%;
|
||||
min-width: 200px;
|
||||
min-width: 250px;
|
||||
max-width: 400px;
|
||||
margin: 10px !important;
|
||||
border-radius: 5px;
|
||||
|
@@ -226,7 +226,7 @@
|
||||
height: 24px;
|
||||
}
|
||||
.toolbar_button > span {
|
||||
vertical-align: 6px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.toolbar_label {
|
||||
|
Reference in New Issue
Block a user