From 49191617b1d0ce8a79b0fe7ef8c884a6e19758f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Antoine=20Dupr=C3=A9?= <ant.dupre@gmail.com>
Date: Wed, 17 May 2023 18:23:16 +0200
Subject: [PATCH] fix: whitespace user profile

---
 src/custom-tzcld.js                    | 3 +--
 src/widjets-display-territory-tzcld.js | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/custom-tzcld.js b/src/custom-tzcld.js
index a747dbb..bc7a749 100644
--- a/src/custom-tzcld.js
+++ b/src/custom-tzcld.js
@@ -230,9 +230,8 @@ import("./utils.js").then((utils) => {
             render += `<div class="segment block margin-top-small text-xlarge text-semibold text-color-secondary text-center">${tzcldprofile.name}</div>`;
           }
 
-          render += `<solid-display id="tzcld-user-profile-first-job" class="segment padding-small" bind-resources="" nested-field="tzcld_profile.jobs" fields="position, organisation" class-picture="avatar xlarge" 
+          render += `<solid-display id="tzcld-user-profile-first-job" class="segment padding-small whitespace-normal" bind-resources="" nested-field="tzcld_profile.jobs" fields="position, organisation" class-picture="avatar xlarge" 
           widget-organisation="tzcld-display-user-organisation"
-          class-organisation="whitespace-normal"
           data-src="${tzcldprofile.id}" solid-resource=""  paginate-by="1"></solid-display>`;  
           render += `<div><solid-display class="segment" bind-resources="" nested-field="tzcld_profile" fields="regions"
           widget-regions="customtzcld-display-user-regions"
diff --git a/src/widjets-display-territory-tzcld.js b/src/widjets-display-territory-tzcld.js
index 9ed2f5a..6f3687f 100644
--- a/src/widjets-display-territory-tzcld.js
+++ b/src/widjets-display-territory-tzcld.js
@@ -52,7 +52,7 @@ import("./utils.js").then((utils) => {
                 </div>
                 <div class="segment width-75 padding-large border-left border-color-grey">
                   <div class="community-card-2 segment full">
-                    <h4 class="text-xlarge text-semibold text-color-secondary margin-top-xxsmall margin-bottom-xsmall">${await tzcldprofile.community.name}</h4>
+                    <h4 class="text-xlarge text-semibold text-color-secondary margin-top-xxsmall margin-bottom-xsmall whitespace-normal">${await tzcldprofile.community.name}</h4>
                     <div>${html_region + html_step_state + html_kind }</div>
                   </div>
                 </div>
-- 
GitLab