Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | When displaying a timeline on a narrow screen, move the date to the third column to make the first column narrower. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
8fc7c1b1bb7ad597ae77f67dcdb55e3f |
User & Date: | drh 2018-08-20 19:15:54.414 |
Context
2018-08-20
| ||
19:30 | For timeline graphs on narrow screens, set the rail pitch to its minimum value to conserve horizontal space. ... (check-in: e63da90d user: drh tags: trunk) | |
19:15 | When displaying a timeline on a narrow screen, move the date to the third column to make the first column narrower. ... (check-in: 8fc7c1b1 user: drh tags: trunk) | |
18:29 | Fix harmless compiler warnings. ... (check-in: 02bd5941 user: drh tags: trunk) | |
Changes
Changes to src/graph.js.
︙ | ︙ | |||
373 374 375 376 377 378 379 380 381 382 383 384 385 386 | var i; for(i=0; i<lx.length; i++){ if( lx[i].hasAttribute('data-id') ) lx[i].onclick = toggleDetail; } lx = topObj.getElementsByClassName('timelineCompactComment'); for(i=0; i<lx.length; i++){ if( lx[i].hasAttribute('data-id') ) lx[i].onclick = toggleDetail; } } /* Look for all timeline-data-NN objects. Load each one and draw ** a graph for each one. */ (function(){ | > > > > > > > > > > > > | 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 | var i; for(i=0; i<lx.length; i++){ if( lx[i].hasAttribute('data-id') ) lx[i].onclick = toggleDetail; } lx = topObj.getElementsByClassName('timelineCompactComment'); for(i=0; i<lx.length; i++){ if( lx[i].hasAttribute('data-id') ) lx[i].onclick = toggleDetail; } if( window.innerWidth<400 ){ /* On narrow displays, shift the date from the first column to the ** third column, to make the first column narrower */ lx = topObj.getElementsByClassName('timelineDateRow'); for(i=0; i<lx.length; i++){ var rx = lx[i]; if( rx.getAttribute('data-reordered') ) break; rx.setAttribute('data-reordered',1); rx.appendChild(rx.firstChild); rx.insertBefore(rx.childNodes[1],rx.firstChild); } } } /* Look for all timeline-data-NN objects. Load each one and draw ** a graph for each one. */ (function(){ |
︙ | ︙ |
Changes to src/timeline.c.
︙ | ︙ | |||
354 355 356 357 358 359 360 | ** (2) YYYY-MM-DD HH:MM ** (3) YYMMDD HH:MM ** (4) (off) */ if( dateFormat<2 ){ if( fossil_strnicmp(zDate, zPrevDate, 10) ){ sqlite3_snprintf(sizeof(zPrevDate), zPrevDate, "%.10s", zDate); | | | 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 | ** (2) YYYY-MM-DD HH:MM ** (3) YYMMDD HH:MM ** (4) (off) */ if( dateFormat<2 ){ if( fossil_strnicmp(zDate, zPrevDate, 10) ){ sqlite3_snprintf(sizeof(zPrevDate), zPrevDate, "%.10s", zDate); @ <tr class="timelineDateRow"><td> @ <div class="divider timelineDate">%s(zPrevDate)</div> @ </td><td></td><td></td></tr> } memcpy(zTime, &zDate[11], 5+dateFormat*3); zTime[5+dateFormat*3] = 0; }else if( 2==dateFormat ){ /* YYYY-MM-DD HH:MM */ |
︙ | ︙ |