From 2537149db7b8e94552505f23a27ff5050945c2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Fri, 1 Aug 2025 12:53:51 +0200 Subject: [PATCH] Improve and fix layout issues in the Chat empty view --- app/Contact.php | 2 +- app/Helpers/UtilsHelper.php | 2 - app/Widgets/Chat/_chat_empty.tpl | 80 +++++++++++---------- app/Widgets/Chat/_chat_explore.tpl | 14 ++-- app/Widgets/Chat/chat.css | 7 +- composer.lock | 112 ++++++++++++++++++----------- 6 files changed, 126 insertions(+), 91 deletions(-) diff --git a/app/Contact.php b/app/Contact.php index a049fd85e..90bc7dc6d 100644 --- a/app/Contact.php +++ b/app/Contact.php @@ -52,7 +52,7 @@ class Contact extends Model from presences group by jid) as presences '), 'presences.jid', '=', 'contacts.id') - ->orderBy('presences.value'); + ->orderBy('presences.value', 'asc'); } public function save(array $options = []) diff --git a/app/Helpers/UtilsHelper.php b/app/Helpers/UtilsHelper.php index e072d4234..bd6729f2e 100644 --- a/app/Helpers/UtilsHelper.php +++ b/app/Helpers/UtilsHelper.php @@ -10,8 +10,6 @@ use React\Http\Message\Response; use React\Promise\Promise; use React\Promise\PromiseInterface; -use function React\Async\await; - /** * Log an error */ diff --git a/app/Widgets/Chat/_chat_empty.tpl b/app/Widgets/Chat/_chat_empty.tpl index 9fba584b3..310fd5d34 100644 --- a/app/Widgets/Chat/_chat_empty.tpl +++ b/app/Widgets/Chat/_chat_empty.tpl @@ -2,49 +2,51 @@ forum - +
{autoescape="off"} diff --git a/app/Widgets/Chat/_chat_explore.tpl b/app/Widgets/Chat/_chat_explore.tpl index 15e8da5a1..8f432ef93 100644 --- a/app/Widgets/Chat/_chat_explore.tpl +++ b/app/Widgets/Chat/_chat_explore.tpl @@ -1,5 +1,5 @@ {if="$users->isNotEmpty()"} -