From 78593d300375fe71af475e001efcbf9e6fb2b864 Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Mon, 31 Oct 2022 16:37:12 +0100
Subject: [PATCH] feat(carto): add structure type icon to search result

---
 .../components/card/card.component.html               | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/app/structure-list/components/card/card.component.html b/src/app/structure-list/components/card/card.component.html
index 79c33855b..9528348e9 100644
--- a/src/app/structure-list/components/card/card.component.html
+++ b/src/app/structure-list/components/card/card.component.html
@@ -6,10 +6,13 @@
   [ngClass]="{ orientation: isOrientation }"
 >
   <div class="left">
-    <div fxLayout="row" fxLayoutAlign="space-between baseline" fxLayoutGap="16px">
-      <div fxLayout="column" fxLayoutAlign="end">
-        <span class="structure-name" [ngClass]="{ notClaimed: !isClaimed }">{{ structure.structureName }}</span>
-        <span class="typeStructure">{{ structure.getLabelTypeStructure() }}</span>
+    <div fxLayout="row" fxLayoutAlign="space-between center" fxLayoutGap="16px">
+      <div fxLayout="row" fxLayoutAlign="center center" fxLayoutGap="8px">
+        <app-svg-icon [type]="'ico'" [icon]="structure.getTypeStructureIcon()" [iconClass]="'icon-52'"></app-svg-icon>
+        <div fxLayout="column" fxLayoutAlign="end">
+          <span class="structure-name" [ngClass]="{ notClaimed: !isClaimed }">{{ structure.structureName }}</span>
+          <span class="typeStructure">{{ structure.getLabelTypeStructure() }}</span>
+        </div>
       </div>
       <div *ngIf="!isOrientation" fxLayout="column" fxLayoutAlign="none end">
         <div class="distanceStructure">
-- 
GitLab