fix(iron-remote-gui): border on hover and fit scale function (#85)

This commit is contained in:
Nicolas Girot
2023-03-06 16:02:00 +00:00
committed by GitHub
parent 9819b9a976
commit 68ebc674a5
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -151,7 +151,7 @@
setViewerStyle(`${height}px`, `${width}px`, true);
}
function fitResize() {
function fitResize(realSizeLimit = false) {
const windowSize = getWindowSize();
const wrapperBoundingBox = wrapper.getBoundingClientRect();
@@ -161,7 +161,7 @@
let width = canvas.width;
let height = canvas.height;
if (containerWidth < canvas.width || containerHeight < canvas.height) {
if (!realSizeLimit || containerWidth < canvas.width || containerHeight < canvas.height) {
const ratio = Math.min(containerWidth / canvas.width, containerHeight / canvas.height);
width = width * ratio;
height = height * ratio;
@@ -309,7 +309,8 @@
}
.capturing-inputs {
border: solid rgba(0,97,166,.7) 1px;
outline: 1px solid rgba(0,97,166,.7);
outline-offset: -1px;
}
canvas {
@@ -29,7 +29,7 @@
toast.set({
type: 'error',
message: event.data,
message: event.data.backtrace ? event.data.backtrace() : event.data,
});
} else {
toast.set({