Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Removed multiplier from the font size calculation, as it does not work with monospace font. Changed /dir font to monospace only for testing purposes, as that one is our pathological column-width case. (Edit: closing, as this approach doesn't appear to provide any benefits over the current one.) |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | dir-columns-revisited |
| Files: | files | file ages | folders |
| SHA3-256: |
7e8cb38ca25a9276846e668fb5ceb5e9 |
| User & Date: | stephan 2020-09-20 07:41:39.610 |
| Original Comment: | Removed multiplier from the font size calculation, as it does not work with monospace font. Changed /dir font to monospace only for testing purposes, as that one is our pathological column-width case. |
Context
|
2020-09-20
| ||
| 07:41 | Removed multiplier from the font size calculation, as it does not work with monospace font. Changed /dir font to monospace only for testing purposes, as that one is our pathological column-width case. (Edit: closing, as this approach doesn't appear to provide any benefits over the current one.) ... (Closed-Leaf check-in: 7e8cb38ca2 user: stephan tags: dir-columns-revisited) | |
| 07:28 | An experiment in improving the /dir column flow. (Not ready to merge.) ... (check-in: e5121a4934 user: stephan tags: dir-columns-revisited) | |
Changes
Changes to src/browse.c.
| ︙ | ︙ | |||
304 305 306 307 308 309 310 |
" SELECT pathelement(name,0), NULL FROM filename"
);
}
/* Generate a multi-column table listing the contents of zD[]
** directory.
*/
| | | 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 |
" SELECT pathelement(name,0), NULL FROM filename"
);
}
/* Generate a multi-column table listing the contents of zD[]
** directory.
*/
mxLen = db_int(12, "SELECT max(length(x)) "
"FROM localfiles /*scan*/");
if( mxLen<12 ) mxLen = 12;
mxLen += (mxLen+9)/10;
db_prepare(&q, "SELECT x, u FROM localfiles ORDER BY x /*scan*/");
@ <div class="columns files">
@ <div class="browser" style="columns: %d(mxLen)ex auto">
while( db_step(&q)==SQLITE_ROW ){
|
| ︙ | ︙ |
Changes to src/default.css.
| ︙ | ︙ | |||
305 306 307 308 309 310 311 312 313 314 315 316 317 318 |
}
div.browser > span {
display: block;
background-repeat: no-repeat;
background-position: 0px center;
padding-left: 20px;
padding-top: 2px;
}
div.browser > span.file {
background-image: url("data:image/gif;base64,R0lGODlhEAAQAJEAAP\/\/\/\
yEhIf\/\/\/wAAACH5BAEHAAIALAAAAAAQABAAAAIvlIKpxqcfmgOUvoaqDSCxrEEfF14Gq\
FXImJZsu73wepJzVMNxrtNTj3NATMKhpwAAOw==");
}
div.browser span.dir {
| > | 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 |
}
div.browser > span {
display: block;
background-repeat: no-repeat;
background-position: 0px center;
padding-left: 20px;
padding-top: 2px;
font-family: monospace /* only for testing the col width calculation! */;
}
div.browser > span.file {
background-image: url("data:image/gif;base64,R0lGODlhEAAQAJEAAP\/\/\/\
yEhIf\/\/\/wAAACH5BAEHAAIALAAAAAAQABAAAAIvlIKpxqcfmgOUvoaqDSCxrEEfF14Gq\
FXImJZsu73wepJzVMNxrtNTj3NATMKhpwAAOw==");
}
div.browser span.dir {
|
| ︙ | ︙ |