From 7b83104fd686bd19c0b99496f1616a386be78b2e Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Tue, 18 Jul 2023 22:04:18 +0100 Subject: [PATCH] fix for #275 --- src/main/resources/static/css/merge.css | 54 ++++++++++++----------- src/main/resources/static/js/fileInput.js | 3 +- 2 files changed, 31 insertions(+), 26 deletions(-) diff --git a/src/main/resources/static/css/merge.css b/src/main/resources/static/css/merge.css index 349ae19e..5196baad 100644 --- a/src/main/resources/static/css/merge.css +++ b/src/main/resources/static/css/merge.css @@ -1,25 +1,29 @@ - .list-group-item { - display: flex; - justify-content: space-between; - align-items: center; -} - -.filename { - flex-grow: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - margin-right: 10px; -} - -.arrows { - flex-shrink: 0; - display: flex; - justify-content: flex-end; -} - -.move-up span, -.move-down span { - font-weight: bold; - font-size: 1.2em; -} + .list-group-item { + display: flex; + justify-content: space-between; + align-items: center; +} + +.filename { + flex-grow: 1; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + margin-right: 10px; +} + +.arrows { + flex-shrink: 0; + display: flex; + justify-content: flex-end; +} +.arrows .btn { + margin: 0 3px; +} + +.move-up span, +.move-down span { + font-weight: bold; + font-size: 1.2em; + +} diff --git a/src/main/resources/static/js/fileInput.js b/src/main/resources/static/js/fileInput.js index d9affafc..94b5294f 100644 --- a/src/main/resources/static/js/fileInput.js +++ b/src/main/resources/static/js/fileInput.js @@ -53,7 +53,8 @@ document.addEventListener('DOMContentLoaded', function() { // Reset drag counter dragCounter = 0; - handleFileInputChange(fileInput); + //handleFileInputChange(fileInput); + fileInput.dispatchEvent(new Event('change', { bubbles: true })); }; // Prevent default behavior for drag events