forked from retoor/snek
fix: reduce image rendering width to 240px and strip query params on fullscreen
This commit is contained in:
@@ -331,7 +331,11 @@
|
||||
overlay.style.zIndex = 9999;
|
||||
|
||||
const fullImg = document.createElement('img');
|
||||
fullImg.src = img.src;
|
||||
|
||||
const urlObj = new URL(img.src);
|
||||
urlObj.search = ''
|
||||
fullImg.src = urlObj.toString();
|
||||
|
||||
fullImg.alt = img.alt;
|
||||
fullImg.style.maxWidth = '90%';
|
||||
fullImg.style.maxHeight = '90%';
|
||||
|
||||
Reference in New Issue
Block a user