Skip to content

Commit

Permalink
Fixed websocket crash when height or width == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-goeldi committed Aug 31, 2023
1 parent ac1f571 commit f9cda3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/+dba813ae.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed websocket crash when height or width == 0
2 changes: 1 addition & 1 deletion src/kweb/templates/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="container-fluid h-100" id="viewer-panel">
<div class="row h-100 p-2" id="layout">
<div class="col-10 rounded shadow d-flex flex-column position-relative h-100" id="layout-view">
<canvas class="rounded shadow canvas-container h-100 w-100" id="layout_canvas"></canvas>
<canvas class="rounded shadow canvas-container h-100 w-100" style="min-width: 100px; min-height: 100px;" id="layout_canvas"></canvas>
<div class="position-absolute top-0 start-1 p-4 d-flex" id="floating-buttons">
<div id="modes" class="me-4"></div>
<div id="menu" class = "row"></div>
Expand Down

0 comments on commit f9cda3c

Please sign in to comment.