@@ -15,11 +15,11 @@ <h1 class="font-medium tracking-tight text-2xl truncate">{{ trip?.name }}</h1>
1515 < div class ="flex items-center gap-2 print:hidden ">
1616 @if (!trip?.archived) {
1717 < div class ="hidden md:flex items-center gap-2 ">
18- < p-button text (click) ="shareDialogVisible = true " icon ="pi pi-share-alt " />
19- < p-button text (click) ="toggleArchiveTrip() " icon ="pi pi-box " severity ="warn " />
18+ < p-button pTooltip =" Share Trip " text (click) ="shareDialogVisible = true " icon ="pi pi-share-alt " />
19+ < p-button pTooltip =" Archive Trip " text (click) ="toggleArchiveTrip() " icon ="pi pi-box " severity ="warn " />
2020 < div class ="border-l border-solid border-gray-700 h-4 "> </ div >
21- < p-button text (click) ="deleteTrip() " icon ="pi pi-trash " severity ="danger " />
22- < p-button text (click) ="editTrip() " icon ="pi pi-pencil " />
21+ < p-button pTooltip =" Delete Trip " text (click) ="deleteTrip() " icon ="pi pi-trash " severity ="danger " />
22+ < p-button pTooltip =" Edit Trip " text (click) ="editTrip() " icon ="pi pi-pencil " />
2323 < div class ="border-l border-solid border-gray-700 h-4 "> </ div >
2424 </ div >
2525
@@ -47,7 +47,7 @@ <h1 class="font-medium tracking-tight text-2xl truncate">{{ trip?.name }}</h1>
4747}
4848
4949< section class ="p-4 print:px-1 grid lg:grid-cols-3 gap-4 print:block ">
50- < div [ngClass] ="{ 'lg:col-span-2': !isExpanded, 'lg:col-span-3 lg:order-2 ': isExpanded } "
50+ < div [ngClass] ="{ 'lg:col-span-2': !isExpanded, 'lg:col-span-3': isExpanded } "
5151 class ="p-4 shadow self-start rounded-md max-w-screen print:col-span-full ">
5252 < div [class.sticky] ="!isMapFullscreen "
5353 class ="top-0 z-10 bg-white p-2 mb-2 flex justify-between items-center dark:bg-surface-900 ">
@@ -58,17 +58,17 @@ <h1 class="font-semibold tracking-tight text-xl">Plans</h1>
5858
5959 < div class ="flex items-center gap-2 print:hidden ">
6060 < div class ="hidden md:flex items-center gap-2 ">
61- < p-button class ="hidden lg:flex " icon ="pi pi-arrows-h " (click) ="isExpanded = !isExpanded " text />
62- < p-button
61+ < p-button pTooltip ="Expand table " class ="hidden lg:flex " icon ="pi pi-arrows-h "
62+ (click) ="isExpanded = !isExpanded " text />
63+ < p-button [pTooltip] ="tableExpandableMode ? 'f' : 'Switch table mode, allow column resizing' "
6364 [icon] ="tableExpandableMode ? 'pi pi-arrow-up-right-and-arrow-down-left-from-center' : 'pi pi-arrow-down-left-and-arrow-up-right-to-center' "
6465 (click) ="tableExpandableMode = !tableExpandableMode " text />
6566 < div class ="border-l border-solid border-gray-700 h-4 "> </ div >
66- < p-button icon ="pi pi-car " (click) ="tripToNavigation() " text />
67- < p-button icon =" pi pi-directions " [severity] =" tripMapAntLayerDayID == -1 ? 'help' : 'primary' "
68- (click) ="toggleTripDaysHighlight() " text />
69- < p-button icon ="pi pi-print " (click) ="printTable() " text />
67+ < p-button pTooltip =" Open Google Maps directions " icon ="pi pi-car " (click) ="tripToNavigation() " text />
68+ < p-button pTooltip =" Show itinerary on map " icon =" pi pi-directions "
69+ [severity] =" tripMapAntLayerDayID == -1 ? 'help' : 'primary' " (click) ="toggleTripDaysHighlight() " text />
70+ < p-button pTooltip =" Print Trip " icon ="pi pi-print " (click) ="printTable() " text />
7071 < div class ="border-l border-solid border-gray-700 h-4 "> </ div >
71- < p-button icon ="pi pi-ellipsis-v " [disabled] ="trip?.archived " (click) ="addItems() " text />
7272 </ div >
7373
7474 < div class ="flex md:hidden items-center ">
@@ -307,8 +307,10 @@ <h1 class="font-semibold tracking-tight text-xl">Map</h1>
307307 </ div >
308308
309309 < div class ="flex gap-2 ">
310- < p-button icon ="pi pi-window-maximize " (click) ="toggleMapFullscreen() " text />
311- < p-button icon ="pi pi-refresh " [disabled] ="!places.length " (click) ="resetMapBounds() " text />
310+ < p-button pTooltip ="Fullscreen " tooltipPosition ="left " icon ="pi pi-window-maximize "
311+ (click) ="toggleMapFullscreen() " text />
312+ < p-button pTooltip ="Reset bounds " tooltipPosition ="left " icon ="pi pi-refresh " [disabled] ="!places.length "
313+ (click) ="resetMapBounds() " text />
312314 </ div >
313315 </ div >
314316
@@ -337,13 +339,15 @@ <h1 class="font-semibold tracking-tight text-xl">Places</h1>
337339 } @placeholder (minimum 0.4s) {
338340 < p-skeleton height ="1.75rem " width ="2.5rem " class ="mr-1 " />
339341 }
340- < p-button icon ="pi pi-plus " [disabled] ="trip?.archived " (click) ="addPlace() " text />
341- < p-button icon ="pi pi-list-check " [disabled] ="trip?.archived " (click) ="manageTripPlaces() " text />
342+ < p-button pTooltip ="Create Place " tooltipPosition ="left " icon ="pi pi-plus " [disabled] ="trip?.archived "
343+ (click) ="addPlace() " text />
344+ < p-button pTooltip ="Manage associated places " tooltipPosition ="left " icon ="pi pi-list-check "
345+ [disabled] ="trip?.archived " (click) ="manageTripPlaces() " text />
342346 </ div >
343347 </ div >
344348
345349 @if (!collapsedTripPlaces) {
346- < div [class.max-h-64!] ="!isExpanded " class ="max-h-[28vh ] overflow-y-auto ">
350+ < div [class.max-h-64!] ="!isExpanded " class ="max-h-[340px ] overflow-y-auto ">
347351 @defer {
348352 @for (p of places; track p.id) {
349353 < div class ="flex items-center gap-4 py-2 px-4 hover:bg-gray-50 rounded-md overflow-auto dark:hover:bg-gray-800 "
@@ -408,7 +412,7 @@ <h1 class="font-semibold tracking-tight text-xl">Days</h1>
408412 </ div >
409413
410414 @if (!collapsedTripDays) {
411- < div [class.max-h-64!] ="!isExpanded " class ="max-h-[28vh ] overflow-y-auto ">
415+ < div [class.max-h-64!] ="!isExpanded " class ="max-h-[340px ] overflow-y-auto ">
412416 @defer {
413417 @for (d of trip?.days; track d.id) {
414418 < div
@@ -461,7 +465,7 @@ <h1 class="font-semibold tracking-tight text-xl">Watchlist</h1>
461465 </ div >
462466
463467 @if (!collapsedTripStatuses) {
464- < div [class.max-h-40!] ="!isExpanded " class ="max-h-[28vh ] overflow-y-auto ">
468+ < div [class.max-h-40!] ="!isExpanded " class ="max-h-[340px ] overflow-y-auto ">
465469 @defer {
466470 @for (item of getWatchlistData; track item.id) {
467471 < div class ="flex items-center gap-2 h-10 px-4 py-2 w-full max-w-full ">
0 commit comments