changeset 370:281d1c958d56

bulma (search): moved `search_item` to components rel 423
author Goffi <goffi@goffi.org>
date Mon, 10 Jul 2023 15:43:49 +0200
parents 1b753e3baf06
children a5a80d761e3e
files sat_templates/templates/bulma/chat/search_item.html sat_templates/templates/bulma/components/search_item.html sat_templates/templates/bulma/static/chat.css sat_templates/templates/bulma/static/styles.css
diffstat 4 files changed, 31 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/bulma/chat/search_item.html	Thu Jul 06 11:42:16 2023 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-{% import 'components/avatar.html' as avatar with context %}
-<div class="column is-2-desktop is-4-touch">
-    <div class="card x-is-hoverable">
-        <a href="{{url}}">
-            <div class="card-image is-flex has-items-centered px-1 py-1">
-                {{ avatar.avatar(item.entity, "is-64x64") }}
-            </div>
-            <div class="card-content has-text-centered has-text-shortenable px-1 py-1">
-                <span>{{identities[item.entity].nicknames[0] if identities[item.entity].nicknames else item.entity}}</span>
-                <div class="search-item__group-tags is-flex is-justify-content-center mt-2">
-                    {% if item.groups %}
-                    <div class="tags">
-                        {% for group in item.groups %}
-                        <span class="tag is-rounded is-light">{{ group }}</span>
-                        {% endfor %}
-                    </div>
-                    {% endif %}
-                </div>
-            </div>
-        </a>
-    </div>
-</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sat_templates/templates/bulma/components/search_item.html	Mon Jul 10 15:43:49 2023 +0200
@@ -0,0 +1,22 @@
+{% import 'components/avatar.html' as avatar with context %}
+<div class="column is-2-desktop is-4-touch">
+    <div class="card x-is-hoverable">
+        <a href="{{url}}">
+            <div class="card-image is-flex has-items-centered px-1 py-1">
+                {{ avatar.avatar(item.entity, "is-64x64") }}
+            </div>
+            <div class="card-content has-text-centered has-text-shortenable px-1 py-1">
+                <span>{{identities[item.entity].nicknames[0] if identities[item.entity].nicknames else item.entity}}</span>
+                <div class="search-item__group-tags is-flex is-justify-content-center mt-2">
+                    {% if item.groups %}
+                    <div class="tags">
+                        {% for group in item.groups %}
+                        <span class="tag is-rounded is-light">{{ group }}</span>
+                        {% endfor %}
+                    </div>
+                    {% endif %}
+                </div>
+            </div>
+        </a>
+    </div>
+</div>
--- a/sat_templates/templates/bulma/static/chat.css	Thu Jul 06 11:42:16 2023 +0200
+++ b/sat_templates/templates/bulma/static/chat.css	Mon Jul 10 15:43:49 2023 +0200
@@ -157,10 +157,3 @@
     top: -10px;
     right: -10px;
 }
-
-/* Search */
-
-.search-item__group-tags {
-    /* we want the item with no group to have the same height as an item with one */
-    min-height: 40px;
-}
--- a/sat_templates/templates/bulma/static/styles.css	Thu Jul 06 11:42:16 2023 +0200
+++ b/sat_templates/templates/bulma/static/styles.css	Mon Jul 10 15:43:49 2023 +0200
@@ -184,6 +184,15 @@
     outline: solid red 0.25rem;
 }
 
+/**************
+ * JID Search *
+ **************/
+
+.search-item__group-tags {
+    /* we want the item with no group to have the same height as an item with one */
+    min-height: 40px;
+}
+
 /***************
  * misc states *
  ***************/