|
|
@ -42,12 +42,14 @@
|
|
|
|
<!-- Autres boutons à droite -->
|
|
|
|
<!-- Autres boutons à droite -->
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
<app-edit-pin-popup
|
|
|
|
<app-edit-pin-popup
|
|
|
|
|
|
|
|
*ngIf="!this.pin.is_poi"
|
|
|
|
[pin]="pin"
|
|
|
|
[pin]="pin"
|
|
|
|
[pinId]="pin.id"
|
|
|
|
[pinId]="pin.id"
|
|
|
|
[pinOpened]="pinOpened"
|
|
|
|
[pinOpened]="pinOpened"
|
|
|
|
></app-edit-pin-popup>
|
|
|
|
></app-edit-pin-popup>
|
|
|
|
|
|
|
|
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
|
|
|
|
*ngIf="!this.pin.is_poi"
|
|
|
|
class="p-2 text-green-500 rounded-full hover:bg-green-200 focus:outline-none flex items-center shadow-sm transition duration-200"
|
|
|
|
class="p-2 text-green-500 rounded-full hover:bg-green-200 focus:outline-none flex items-center shadow-sm transition duration-200"
|
|
|
|
(click)="sharePin()"
|
|
|
|
(click)="sharePin()"
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -67,6 +69,7 @@
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
|
|
|
|
*ngIf="!pin.is_poi"
|
|
|
|
class="p-2 text-red-500 rounded-full hover:bg-red-100 focus:outline-none flex items-center shadow-sm transition duration-200"
|
|
|
|
class="p-2 text-red-500 rounded-full hover:bg-red-100 focus:outline-none flex items-center shadow-sm transition duration-200"
|
|
|
|
(click)="onDelete()"
|
|
|
|
(click)="onDelete()"
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -117,12 +120,14 @@
|
|
|
|
class="relative carousel overflow-hidden"
|
|
|
|
class="relative carousel overflow-hidden"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
|
|
|
|
*ngIf="!this.pin.is_poi"
|
|
|
|
class="relative mt-2 overflow-hidden rounded-lg flex items-center justify-center"
|
|
|
|
class="relative mt-2 overflow-hidden rounded-lg flex items-center justify-center"
|
|
|
|
[ngClass]="{
|
|
|
|
[ngClass]="{
|
|
|
|
'h-32 sm:h-40 md:h-52 lg:h-60': true
|
|
|
|
'h-32 sm:h-40 md:h-52 lg:h-60': true
|
|
|
|
}"
|
|
|
|
}"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
*ngFor="let imageId of pin.files; let index = index"
|
|
|
|
*ngFor="let imageId of pin.files; let index = index"
|
|
|
|
[class]="
|
|
|
|
[class]="
|
|
|
|
'absolute inset-0 transition-opacity duration-700 ease-in-out' +
|
|
|
|
'absolute inset-0 transition-opacity duration-700 ease-in-out' +
|
|
|
@ -210,9 +215,12 @@
|
|
|
|
<span class="text-gray-500">No images available</span>
|
|
|
|
<span class="text-gray-500">No images available</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
class="text-lg mb-4 text-left truncate whitespace-nowrap overflow-hidden"
|
|
|
|
class="text-lg mb-4 text-left"
|
|
|
|
|
|
|
|
[ngClass]="{
|
|
|
|
|
|
|
|
'whitespace-nowrap overflow-hidden truncate': !pin.is_poi,
|
|
|
|
|
|
|
|
'text-justify': pin.is_poi
|
|
|
|
|
|
|
|
}"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{{ pin.description || "Aucune description" }}
|
|
|
|
{{ pin.description || "Aucune description" }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|