Skip to content

Commit

Permalink
improved picture formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
colin committed Dec 10, 2023
1 parent 821b289 commit 8ab9385
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions api/static/javascript/favourites.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ function createList(multiplePlacesArrays) {
overflow-hidden my-2 justify-between">
<div class='flex items-center'>
<!-- Adjustments to image container for equal spacing -->
<div class="flex justify-center items-center w-[35%]
h-[10rem]">
<img class="rounded-l-lg object-center"
<div class="w-48 flex items-center justify-center p-4" style="height: 150px; min-width: 200px; overflow: hidden;">
<img class="object-cover rounded-lg w-full h-full"
src="${place.photo_reference}"
alt="Photo of ${place.name}">
alt="Photo of ${place.name}" style="max-height: 200px;">
</div>
<div class="p-4 flex flex-col justify-between w-[65%]">
<div>
Expand Down Expand Up @@ -219,7 +218,6 @@ function optimize(tripid) {
// route. Some appending and adjustments of the
// index has to be done as Route API returns
// only the order of the intermediate waypoints
console.log(data)
data = data.map(x=> x+2);
data.unshift(1);
data.push(data.length+1);
Expand Down

0 comments on commit 8ab9385

Please sign in to comment.