Fossil SCM
/dir page: changed the (columns: Xex Y) to (Xex auto), as the previous computed value (the number of entries in the list) was a semantic mismatch for that CSS property (the number of columns).
Commit
ea66927c0cb112ad408c9b17646e344c85bca9324d3a3a0aad14e65c55d25c28
Parent
374ca0c007974d0…
1 file changed
+1
-3
+1
-3
| --- src/browse.c | ||
| +++ src/browse.c | ||
| @@ -122,11 +122,10 @@ | ||
| 122 | 122 | */ |
| 123 | 123 | void page_dir(void){ |
| 124 | 124 | char *zD = fossil_strdup(P("name")); |
| 125 | 125 | int nD = zD ? strlen(zD)+1 : 0; |
| 126 | 126 | int mxLen; |
| 127 | - int n; | |
| 128 | 127 | char *zPrefix; |
| 129 | 128 | Stmt q; |
| 130 | 129 | const char *zCI = P("ci"); |
| 131 | 130 | int rid = 0; |
| 132 | 131 | char *zUuid = 0; |
| @@ -269,15 +268,14 @@ | ||
| 269 | 268 | |
| 270 | 269 | /* Generate a multi-column table listing the contents of zD[] |
| 271 | 270 | ** directory. |
| 272 | 271 | */ |
| 273 | 272 | mxLen = db_int(12, "SELECT max(length(x)) FROM localfiles /*scan*/"); |
| 274 | - n = db_int(1,"SELECT count(*) FROM localfiles; /*scan*/"); | |
| 275 | 273 | if( mxLen<12 ) mxLen = 12; |
| 276 | 274 | mxLen += (mxLen+9)/10; |
| 277 | 275 | db_prepare(&q, "SELECT x, u FROM localfiles ORDER BY x /*scan*/"); |
| 278 | - @ <div class="columns files" style="columns: %d(mxLen)ex %d(n);"> | |
| 276 | + @ <div class="columns files" style="columns: %d(mxLen)ex auto"> | |
| 279 | 277 | @ <ul class="browser"> |
| 280 | 278 | while( db_step(&q)==SQLITE_ROW ){ |
| 281 | 279 | const char *zFN; |
| 282 | 280 | zFN = db_column_text(&q, 0); |
| 283 | 281 | if( zFN[0]=='/' ){ |
| 284 | 282 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -122,11 +122,10 @@ | |
| 122 | */ |
| 123 | void page_dir(void){ |
| 124 | char *zD = fossil_strdup(P("name")); |
| 125 | int nD = zD ? strlen(zD)+1 : 0; |
| 126 | int mxLen; |
| 127 | int n; |
| 128 | char *zPrefix; |
| 129 | Stmt q; |
| 130 | const char *zCI = P("ci"); |
| 131 | int rid = 0; |
| 132 | char *zUuid = 0; |
| @@ -269,15 +268,14 @@ | |
| 269 | |
| 270 | /* Generate a multi-column table listing the contents of zD[] |
| 271 | ** directory. |
| 272 | */ |
| 273 | mxLen = db_int(12, "SELECT max(length(x)) FROM localfiles /*scan*/"); |
| 274 | n = db_int(1,"SELECT count(*) FROM localfiles; /*scan*/"); |
| 275 | if( mxLen<12 ) mxLen = 12; |
| 276 | mxLen += (mxLen+9)/10; |
| 277 | db_prepare(&q, "SELECT x, u FROM localfiles ORDER BY x /*scan*/"); |
| 278 | @ <div class="columns files" style="columns: %d(mxLen)ex %d(n);"> |
| 279 | @ <ul class="browser"> |
| 280 | while( db_step(&q)==SQLITE_ROW ){ |
| 281 | const char *zFN; |
| 282 | zFN = db_column_text(&q, 0); |
| 283 | if( zFN[0]=='/' ){ |
| 284 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -122,11 +122,10 @@ | |
| 122 | */ |
| 123 | void page_dir(void){ |
| 124 | char *zD = fossil_strdup(P("name")); |
| 125 | int nD = zD ? strlen(zD)+1 : 0; |
| 126 | int mxLen; |
| 127 | char *zPrefix; |
| 128 | Stmt q; |
| 129 | const char *zCI = P("ci"); |
| 130 | int rid = 0; |
| 131 | char *zUuid = 0; |
| @@ -269,15 +268,14 @@ | |
| 268 | |
| 269 | /* Generate a multi-column table listing the contents of zD[] |
| 270 | ** directory. |
| 271 | */ |
| 272 | mxLen = db_int(12, "SELECT max(length(x)) FROM localfiles /*scan*/"); |
| 273 | if( mxLen<12 ) mxLen = 12; |
| 274 | mxLen += (mxLen+9)/10; |
| 275 | db_prepare(&q, "SELECT x, u FROM localfiles ORDER BY x /*scan*/"); |
| 276 | @ <div class="columns files" style="columns: %d(mxLen)ex auto"> |
| 277 | @ <ul class="browser"> |
| 278 | while( db_step(&q)==SQLITE_ROW ){ |
| 279 | const char *zFN; |
| 280 | zFN = db_column_text(&q, 0); |
| 281 | if( zFN[0]=='/' ){ |
| 282 |