From 2a2da8cae59922e374c9783e049176966c113969 Mon Sep 17 00:00:00 2001
From: antoine37120 <ant.dupre@gmail.com>
Date: Sat, 23 Sep 2023 19:22:02 +0200
Subject: [PATCH] fix: loader in bottom territory list

---
 src/views-terrytories.js | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/views-terrytories.js b/src/views-terrytories.js
index 4f3e0a0..a11c56e 100644
--- a/src/views-terrytories.js
+++ b/src/views-terrytories.js
@@ -577,12 +577,6 @@ import("./utils.js").then((utils) => {
       
                     <div class="segment block margin-right-xxsmall margin-left-xxsmall sm-margin-none padding-top-xlarge sm-padding-xsmall whitespace-normal">
                     <h2 class="margin-top-xxsmall margin-left-xsmall margin-bottom-medium sm-margin-none sm-margin-right-xsmall sm-margin-bottom-small sm-margin-left-xsmall text-xlarge text-bold text-color-heading text-uppercase">Mes territoires</h2>
-                      <div class="loader" id="loader-${this.route}-my-communities">
-                        <div></div>
-                        <div></div>
-                        <div></div>
-                        <div></div>
-                      </div>
                       <solid-form-search 
                       class="form search-form sm-whitespace-normal" 
                       id="my-communities-filter" 
@@ -633,7 +627,14 @@ import("./utils.js").then((utils) => {
                       widget-counter="tzcld-communities-counter-alternate" 
                       order-asc="name"
                       >
-                      </solid-display>`;
+                      </solid-display>
+                      
+                      <div class="loader" id="loader-${this.route}-my-communities">
+                        <div></div>
+                        <div></div>
+                        <div></div>
+                        <div></div>
+                      </div>`;
       
                 render += `
                   </div>
-- 
GitLab