From 333e6081f6d71e5c6548e5e5b37939611f971651 Mon Sep 17 00:00:00 2001 From: David Refoua Date: Sat, 3 Dec 2022 01:31:36 +0330 Subject: [PATCH] apply default background css for icon --- lib/core/show-dir/styles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/show-dir/styles.js b/lib/core/show-dir/styles.js index 85f6259a5..53c1379bb 100644 --- a/lib/core/show-dir/styles.js +++ b/lib/core/show-dir/styles.js @@ -4,7 +4,7 @@ const icons = require('./icons.json'); const IMG_SIZE = 16; -let css = `i.icon { display: block; height: ${IMG_SIZE}px; width: ${IMG_SIZE}px; }\n`; +let css = `i.icon { display: block; height: ${IMG_SIZE}px; width: ${IMG_SIZE}px; background: no-repeat center; }\n`; css += 'table tr { white-space: nowrap; }\n'; css += 'td.perms {}\n'; css += 'td.file-size { text-align: right; padding-left: 1em; }\n';