@farberg/reveal-template 1.1.34 → 1.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -38,6 +38,12 @@ const dirTreeFactory = ({ zip, strToU8 }) => ({
|
|
|
38
38
|
position: relative !important;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/* Without a download button there is nothing to clear at the top,
|
|
42
|
+
so drop the reserved space the button would otherwise occupy. */
|
|
43
|
+
.dirtree-container.no-download {
|
|
44
|
+
padding-top: 14px;
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
ul.dirtree {
|
|
42
48
|
list-style: none !important;
|
|
43
49
|
padding: 0 !important;
|
|
@@ -814,6 +820,9 @@ const dirTreeFactory = ({ zip, strToU8 }) => ({
|
|
|
814
820
|
btn.href = '#zip/' + zipName;
|
|
815
821
|
btn.addEventListener('click', e => { e.preventDefault(); download(files, zipName); });
|
|
816
822
|
container.appendChild(btn);
|
|
823
|
+
} else {
|
|
824
|
+
// No button means no need to reserve top padding for it.
|
|
825
|
+
container.classList.add('no-download');
|
|
817
826
|
}
|
|
818
827
|
|
|
819
828
|
const ul = document.createElement('ul');
|