File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ <h2 id="not_working">
9696 </ div >
9797</ div >
9898
99- < div id ="canvas-wrapper " style =" width: 100%; height: 100% ">
100- < canvas class ="emscripten " id ="canvas " oncontextmenu =" event.preventDefault() " > </ canvas >
99+ < div id ="canvas-wrapper " class =" imhex-web-canvas-wrapper ">
100+ < canvas class ="imhex-web-canvas canvas-fixed " id ="canvas " > </ canvas >
101101</ div >
102102
103103< script src ="wasm-config.js "> </ script >
Original file line number Diff line number Diff line change @@ -185,4 +185,23 @@ a:hover {
185185 position : absolute;
186186 top : 0 ;
187187 left : 0 ;
188+ }
189+
190+ .imhex-web-canvas {
191+ width : 100% ;
192+ height : 100% ;
193+ display : block;
194+ overflow : hidden;
195+ image-rendering : smooth;
196+ margin : 0 ;
197+ padding : 0 ;
198+ z-index : 1 ;
199+ }
200+
201+ .imhex-web-canvas-wrapper {
202+ position : relative;
203+ width : 100% ;
204+ height : 100% ;
205+ overflow : hidden;
206+ background-size : 100% 100% ;
188207}
You can’t perform that action at this time.
0 commit comments