diff options
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/css/layout.css | 2 | ||||
-rw-r--r-- | src/main/resources/js/files.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/resources/css/layout.css b/src/main/resources/css/layout.css index 2640419..5db8bff 100644 --- a/src/main/resources/css/layout.css +++ b/src/main/resources/css/layout.css @@ -4,7 +4,7 @@ html, body { padding: 0; margin: 0; min-width: 100vmin; - min-height: 100vmin; + min-height: 100%; } button { diff --git a/src/main/resources/js/files.js b/src/main/resources/js/files.js index f776165..28d091b 100644 --- a/src/main/resources/js/files.js +++ b/src/main/resources/js/files.js @@ -141,14 +141,14 @@ function setListeners() { request.open("POST", `/share/${path}/${fileName}`); request.onload = () => { if (request.readyState === 4) { - if (request.status === 200) { + if (request.status === 200) { // TODO: fix clipboard in Firefox const input = document.createElement('input'); input.setAttribute('value', request.responseText); document.body.appendChild(input); input.select(); document.execCommand('copy'); document.body.removeChild(input); - alert("Copied url to clipboard!") + alert(`Copied url to clipboard!\n${request.responseText}`); } else { alert("Something went wrong."); } |