Sfoglia il codice sorgente

Stops showing date marker if first item

Changes date marker to use description
main
Eric Amodio 4 anni fa
parent
commit
7db7fa5be2
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +3
    -3
      src/views/nodes/helpers.ts

+ 3
- 3
src/views/nodes/helpers.ts Vedi File

@ -48,9 +48,9 @@ export function* insertDateMarkers
[, marker] = markers[index];
}
// Don't show the last marker as the first entry -- since it could be wildly far off
if (!first || index < markers.length - 1) {
yield new MessageNode(parent.view, parent, marker);
// Don't show the marker if it is the first node
if (!first) {
yield new MessageNode(parent.view, parent, '', marker);
}
index++;

Caricamento…
Annulla
Salva