Skip to content

Commit c869c63

Browse files
committed
Object-fit: contain
1 parent 03b31f6 commit c869c63

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/templates/web-vnc.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@
5656
}
5757

5858
.vnc-canvas-container canvas {
59-
/* Let noVNC handle sizing naturally */
59+
/* Maintain aspect ratio while fitting in container */
6060
max-width: 100%;
6161
max-height: 100%;
62+
width: auto !important;
63+
height: auto !important;
64+
object-fit: contain;
6265
}
6366

6467
.vnc-connecting {

0 commit comments

Comments
 (0)