mirror of
https://github.com/netbirdio/IronRDP.git
synced 2026-05-22 18:43:12 -07:00
fix(iron-remote-gui): border on hover and fit scale function (#85)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user