diff options
author | cbdev <cb@cbcdn.com> | 2025-07-18 21:59:27 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2025-07-18 21:59:27 +0200 |
commit | 3e7cd33f79d4a3a130e217f98e37f446761fad2c (patch) | |
tree | 75eb32ce1a3295b7dde973c83cde746acadc79c4 /assets | |
parent | cfc8ae86e2067c9f9303fe326e3de566b53f1849 (diff) | |
download | cargohold-3e7cd33f79d4a3a130e217f98e37f446761fad2c.tar.gz cargohold-3e7cd33f79d4a3a130e217f98e37f446761fad2c.tar.bz2 cargohold-3e7cd33f79d4a3a130e217f98e37f446761fad2c.zip |
Diffstat (limited to 'assets')
-rw-r--r-- | assets/cargohold.css | 12 | ||||
-rw-r--r-- | assets/cargohold.js | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/assets/cargohold.css b/assets/cargohold.css index eddd1c7..95879fb 100644 --- a/assets/cargohold.css +++ b/assets/cargohold.css @@ -200,3 +200,15 @@ a.button { .footer { padding: 1em; } + +img.preview { + max-height: 95vh; + width: 100%; + display: block; + border-radius: 0.3em; +} + +a.listing-entry:has(img) { + margin: 1em auto; + width: fit-content; +} diff --git a/assets/cargohold.js b/assets/cargohold.js index ea882fa..4e8bdd3 100644 --- a/assets/cargohold.js +++ b/assets/cargohold.js @@ -140,7 +140,7 @@ function listing_update(){ listing_add(data.files[i], data.display); } - element("download-all").innerText = "Download all (" + data.files.length + " Files, " + (data.total / 1024 /1024) + "MB)"; + element("download-all").innerText = "Download all (" + data.files.length + " Files, " + (data.total / 1024 /1024).toFixed(2) + " MB)"; }; req.open("GET", "listing"); req.send(); |