From 76258988ffb9e182702f8cee8ef4392d493f4b77 Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Tue, 16 Feb 2021 08:19:53 +0200 Subject: Image viewer bugs --- css/style.css | 1 + loggedin.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/css/style.css b/css/style.css index b99d13f..ef22be7 100644 --- a/css/style.css +++ b/css/style.css @@ -315,6 +315,7 @@ input[type=submit]:hover { background-color: black; background-repeat: no-repeat; background-position: center; + background-size: contain; } .filecontentsroot, .foldercontents { diff --git a/loggedin.js b/loggedin.js index 8d9e92f..f34c169 100644 --- a/loggedin.js +++ b/loggedin.js @@ -337,7 +337,6 @@ function openfile_nondir() { let b = `data:image/png;base64,${base64ArrayBuffer(xhr.response)}`; focus.filecontents.style.backgroundImage = `url('${b}')`; focus.filecontents.classList.add('imgview'); - focus.filecontents.innerText = "asdf"; } } else { -- cgit v1.2.3