diff --git a/www/js/diary/infinite_scroll_list.js b/www/js/diary/infinite_scroll_list.js index 9f7c9ac2c..37072c61e 100644 --- a/www/js/diary/infinite_scroll_list.js +++ b/www/js/diary/infinite_scroll_list.js @@ -82,7 +82,7 @@ angular.module('emission.main.diary.infscrolllist',['ui-leaflet', const numButtons = entry.INPUTS?.length || 1; height = 272 + (54 * numButtons) } else if (entry.enter_ts) { // entry is a place - height = 106; + height = 188; } if (entry.additionsList) { height += 40 * entry.additionsList.length; // for each trip/place addition object, we need to increase the card height @@ -317,6 +317,8 @@ angular.module('emission.main.diary.infscrolllist',['ui-leaflet', const place = cTrip.confirmed_place; $scope.data.displayTimelineEntries.push(cTrip); if ($scope.showPlaces && place) { + // if a place (such as the last place) does not have a display_end_time, make the display_end_time be the end of the day + !place.display_end_time ? place.display_end_time = moment(place.enter_fmt_time).parseZone().endOf('day').format("h:mm A") : place.display_end_time = place.display_end_time; $scope.data.displayTimelineEntries.push(place); } }); diff --git a/www/templates/diary/place_list_item.html b/www/templates/diary/place_list_item.html index f5a55f8a4..34868a095 100644 --- a/www/templates/diary/place_list_item.html +++ b/www/templates/diary/place_list_item.html @@ -2,9 +2,13 @@ +
{{place.display_start_time}}
+
+ {{place.display_date}} +
@@ -19,6 +23,7 @@
+
{{place.display_end_time}}