Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | An experiment in improving the /dir column flow. (Not ready to merge.) |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | dir-columns-revisited |
| Files: | files | file ages | folders |
| SHA3-256: |
e5121a4934b4f938a47a2e9207bf6023 |
| User & Date: | stephan 2020-09-20 07:28:22.287 |
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) | |
|
2020-09-19
| ||
| 16:36 | Moved pikchr_process() nonce so that it also applies for error output. Added missing 'error' CSS class to the error-report PRE tag. Added mention of Ctrl-Enter in pikchshow intro text. ... (check-in: 11e7960e51 user: stephan tags: trunk) | |
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 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 |
" 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)) * 0.85 "
"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 ){
const char *zFN;
zFN = db_column_text(&q, 0);
if( zFN[0]=='/' ){
zFN++;
@ <span class="dir">%z(href("%s%T",zSubdirLink,zFN))%h(zFN)</a></span>
}else{
const char *zLink;
if( zCI ){
zLink = href("%R/file?name=%T%T&ci=%T",zPrefix,zFN,zCI);
}else{
zLink = href("%R/finfo?name=%T%T",zPrefix,zFN);
}
@ <span class="%z(fileext_class(zFN))">%z(zLink)%h(zFN)</a></span>
}
}
db_finalize(&q);
manifest_destroy(pM);
@ </div></div>
/* If the "noreadme" query parameter is present, do not try to
** show the content of the README file.
*/
if( P("noreadme")!=0 ){
style_footer();
return;
|
| ︙ | ︙ |
Changes to src/default.css.
| ︙ | ︙ | |||
223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
span.wikiTagCancelled {
text-decoration: line-through;
}
div.columns {
padding: 0 2em 0 2em;
max-width: 1000px;
}
div.columns > ul {
margin: 0;
padding: 0 0 0 1em;
}
div.columns > ul li:first-child {
margin-top:0px;
}
| > > > | 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 |
span.wikiTagCancelled {
text-decoration: line-through;
}
div.columns {
padding: 0 2em 0 2em;
max-width: 1000px;
}
div.columns.files {
max-width: unset;
}
div.columns > ul {
margin: 0;
padding: 0 0 0 1em;
}
div.columns > ul li:first-child {
margin-top:0px;
}
|
| ︙ | ︙ | |||
291 292 293 294 295 296 297 |
padding-left: 21px;
background-image: url("data:image/gif;base64,R0lGODlhEAAQAJEAAP\/\/\/y\
EhIf\/\/\/wAAACH5BAEHAAIALAAAAAAQABAAAAIvlIKpxqcfmgOUvoaqDSCxrEEfF14GqFX\
ImJZsu73wepJzVMNxrtNTj3NATMKhpwAAOw==");
background-position: center left;
background-repeat: no-repeat;
}
| | < | | < < > > > > > | < < < < | 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
padding-left: 21px;
background-image: url("data:image/gif;base64,R0lGODlhEAAQAJEAAP\/\/\/y\
EhIf\/\/\/wAAACH5BAEHAAIALAAAAAAQABAAAAIvlIKpxqcfmgOUvoaqDSCxrEEfF14GqFX\
ImJZsu73wepJzVMNxrtNTj3NATMKhpwAAOw==");
background-position: center left;
background-repeat: no-repeat;
}
div.browser {
padding: 10px;
margin: 0px;
white-space: nowrap;
}
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 {
background-image: url("data:image/gif;base64,R0lGODlhEAAQAJEAAP/WVCIiI\
v\/\/\/wAAACH5BAEHAAIALAAAAAAQABAAAAInlI9pwa3XYniCgQtkrAFfLXkiFo1jaXpo+\
jUs6b5Z/K4siDu5RPUFADs=");
}
div.filetreeline {
display: table;
width: 100%;
white-space: nowrap;
}
.filetree .dir > div.filetreeline > a {
|
| ︙ | ︙ |