Skip to content

Commit c3feab2

Browse files
authored
fixed layout
Since the table is not automatically width-fixed, we have to disable line breaking in order to show the entire path (and permissions) in one line
1 parent 31cd630 commit c3feab2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ecstatic/show-dir/styles.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ 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';

0 commit comments

Comments
 (0)