diff --git a/src/js/fileHandler.js b/src/js/fileHandler.js index df60dad..48e0508 100644 --- a/src/js/fileHandler.js +++ b/src/js/fileHandler.js @@ -128,9 +128,6 @@ export default class FileHandler { listen() { // browser API document.getElementById('fileInput').addEventListener('change', this.confirmTransfer.bind(this), false); - - // darkwire - return this; } diff --git a/src/js/window.js b/src/js/window.js index abb9c8c..853c08e 100644 --- a/src/js/window.js +++ b/src/js/window.js @@ -33,7 +33,7 @@ export default class WindowHandler { if (this.fileHandler.isSupported) { $('#send-file').click((e) => { e.preventDefault(); - $('#fileInput').trigger('click'); + document.getElementById('fileInput').click(); }); } else { $('#send-file').remove(); @@ -51,6 +51,7 @@ export default class WindowHandler { window.onblur = () => { this._isActive = false; }; + } } diff --git a/src/public/style.css b/src/public/style.css index d39147e..7745f9e 100644 --- a/src/public/style.css +++ b/src/public/style.css @@ -47,6 +47,10 @@ html, body { padding: 0; } +img { + max-width: 100%; +} + @font-face { font-family: 'SourceCodePro-Regular'; src: url('fonts/SourceCodePro-Regular.eot?#iefix') format('embedded-opentype'), url('fonts/SourceCodePro-Regular.woff') format('woff'), url('fonts/SourceCodePro-Regular.ttf') format('truetype'), url('fonts/SourceCodePro-Regular.svg#SourceCodePro-Regular') format('svg'); @@ -308,7 +312,16 @@ html.no-touchevents .chat #input-icons { } #fileInput { - display: none; + position: absolute; + top: 0; + right: 45px; + margin: 0; + opacity: 0; + -ms-filter: 'alpha(opacity=0)'; + font-size: 200px; + direction: ltr; + cursor: pointer; + width: 45px; } .file-disclaimer {