diff --git a/iron-remote-gui/src/iron-remote-gui.svelte b/iron-remote-gui/src/iron-remote-gui.svelte index 441bef07..02ae8097 100644 --- a/iron-remote-gui/src/iron-remote-gui.svelte +++ b/iron-remote-gui/src/iron-remote-gui.svelte @@ -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 { diff --git a/iron-svelte-client/src/lib/login/login.svelte b/iron-svelte-client/src/lib/login/login.svelte index c9ba4ed0..55678d16 100644 --- a/iron-svelte-client/src/lib/login/login.svelte +++ b/iron-svelte-client/src/lib/login/login.svelte @@ -29,7 +29,7 @@ toast.set({ type: 'error', - message: event.data, + message: event.data.backtrace ? event.data.backtrace() : event.data, }); } else { toast.set({