Skip to content

Commit c63c550

Browse files
authored
Merge pull request #207 from DRSDavidSoft/master
fixed CSS and layout
2 parents df39a58 + 42ccadc commit c63c550

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,4 @@ Listed in no particular order:
6262
* @wood1986
6363
* Mahdi Hasheminejad @mahdi-ninja
6464
* Bradley Farias @bmeck <[email protected]>
65+
* David Refoua @DRSDavidSoft <[email protected]>

lib/ecstatic/show-dir/styles.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ const icons = require('./icons.json');
55
const IMG_SIZE = 16;
66

77
let css = `i.icon { display: block; height: ${IMG_SIZE}px; width: ${IMG_SIZE}px; }\n`;
8+
css += 'table tr { white-space: nowrap; }\n';
89
css += 'td.perms {}\n';
910
css += 'td.file-size { text-align: right; padding-left: 1em; }\n';
1011
css += 'td.display-name { padding-left: 1em; }\n';
1112

1213
Object.keys(icons).forEach((key) => {
1314
css += `i.icon-${key} {\n`;
14-
css += ` background: url("data:image/png;base64,${icons[key]}");\n`;
15+
css += ` background-image: url("data:image/png;base64,${icons[key]}");\n`;
1516
css += '}\n\n';
1617
});
1718

0 commit comments

Comments
 (0)