@ -37,13 +37,11 @@
{% endblock %}
{% block content %}
< div
class="chat-main-wrapper flex w-full shadow-md border border-gray-200 dark:border-gray-700 rounded-xl overflow-hidden mt-0 relative">
< div class = "chat-main-wrapper flex w-full mt-0 relative" >
< div
class="rooms-sidebar flex-shrink-0 flex flex-col border-r border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50 relative z-20">
< div class = "rooms-sidebar flex-shrink-0 flex flex-col relative z-20" >
< div class = "telegram-header px-5 py-3 flex-shrink-0 flex items-center justify-between shadow-sm" >
< div class = "telegram-header shadow-sm" >
< div class = "flex items-center gap-3" >
< div class = "user-avatar bg-white/20 border border-white/30 text-white shadow-sm" >
< span class = "material-symbols-outlined text-[20px]" > forum< / span >
@ -69,20 +67,18 @@
< div id = "users-modal"
class="absolute inset-0 z-50 bg-gray-50 dark:bg-gray-900 flex flex-col transform transition-transform duration-300 translate-y-full shadow-2xl">
< div class = "telegram-header px-5 py-3 flex items-center gap-3 shadow-sm" >
< div class = "telegram-header justify-start gap-3 shadow-sm" >
< button type = "button" id = "close-users-modal"
class="text-white hover:bg-white/20 p-1.5 rounded-full transition-colors flex items-center justify-center">
class="text-white hover:bg-white/20 p-1.5 rounded-full transition-colors flex items-center justify-center -ml-2 ">
< span class = "material-symbols-outlined text-[22px]" > arrow_back< / span >
< / button >
< h3 class = "text-[16px] font-semibold text-white m-0 tracking-wide" > {% trans "Select Contact" %}< / h3 >
< / div >
< div class = "p-4 border-b border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-800 shadow-sm" >
< div class = "relative telegram-input-container !p-1.5" >
< span
class="material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-gray-400 text-[20px]">search< / span >
< input type = "text" id = "user-search-input"
class="telegram-message-input w-full pl-11 pr-4 py-1 !min-h-[35px]"
< div class = "flex items-center telegram-input-container !p-1.5 gap-2" >
< span class = "material-symbols-outlined text-gray-400 text-[20px] ml-2" > search< / span >
< input type = "text" id = "user-search-input" class = "telegram-message-input flex-1 py-1 !min-h-[35px]"
placeholder="{% trans 'Search users...' %}">
< / div >
< / div >
@ -95,25 +91,17 @@
< / div >
< / div >
< div class = "chat-area flex-1 flex flex-col relative z-10" style = "min-width: 0; overflow: hidden;" >
< div id = "no-chat-selected"
class="absolute inset-0 flex flex-col items-center justify-center text-gray-400 z-30 bg-[#f8fafc] dark:bg-[#111827]">
< div
class="w-20 h-20 mx-auto mb-6 bg-gradient-to-br from-blue-100 to-blue-200 dark:from-gray-700 dark:to-gray-600 rounded-full flex items-center justify-center shadow-inner">
< span class = "material-symbols-outlined text-5xl text-blue-500 dark:text-blue-400 opacity-80" > chat< / span >
< / div >
< h3 class = "text-lg font-semibold text-gray-700 dark:text-gray-300 mb-2" > {% trans "No Chat Selected" %}< / h3 >
< p class = "text-sm font-medium" > {% trans "Select a chat from the sidebar to start messaging" %}< / p >
< / div >
< div class = "chat-area" >
< div id = "active-chat-header"
class="telegram-header px-6 py-3 flex items-center justify-between flex-shrink-0 invisible">
< div class = "flex items-center gap-3" >
< div id = "active-chat-header" class = "telegram-header" >
< div id = "chat-header-info" class = "flex items-center gap-3 hidden" >
< div class = "user-avatar bg-white/20 border border-white/30 text-white shadow-sm" >
< span class = "material-symbols-outlined text-[20px]" > group< / span >
< / div >
< h3 id = "active-chat-title" class = "text-[16px] font-semibold text-white m-0 tracking-wide" > < / h3 >
< / div >
< span id = "polling-indicator" class = "flex h-2.5 w-2.5 relative hidden" >
< span
class="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-300 opacity-75">< / span >
@ -122,13 +110,26 @@
< / span >
< / div >
< div id = "chat-messages" class = "chat-messages flex-1 invisible" > < / div >
< div id = "no-chat-selected"
class="flex-1 flex flex-col items-center justify-center w-full p-8 z-30"
style="transform: translateY(64px);">
< div
class="w-20 h-20 mx-auto mb-6 bg-gradient-to-br from-[#0A522E]/10 to-[#0A522E]/20 dark:from-[#FAF6E9]/10 dark:to-[#FAF6E9]/20 rounded-full flex items-center justify-center shadow-inner">
< span
class="material-symbols-outlined text-5xl text-[#0A522E] dark:text-[#FAF6E9] opacity-90">chat< / span >
< / div >
< h3 class = "text-lg font-semibold text-[#052B18] dark:text-[#FAF6E9] mb-2 text-center" > No Chat Selected< / h3 >
< p class = "text-sm font-medium opacity-80 text-[#0A522E] dark:text-[#FAF6E9] text-center" > Select a chat from
the sidebar to start messaging< / p >
< / div >
< div id = "chat-messages" class = "chat-messages flex-1 hidden" > < / div >
< div id = "chat-input-area" class = "message-input-area flex-shrink-0 px-6 py-4 invisible z-20" >
< form id = "chat-form" class = "flex items-center gap-3 w-full m-0 max-w-5xl mx-auto" >
< div class = "telegram-input-container flex-1" >
< input type = "text" id = "chat-input" class = "telegram-message-input w-full"
placeholder="{% trans 'Type your message...' %}" autocomplete="off">
< div id = "chat-input-area" class = "message-input-area w-full !w-full !max-w-none flex-shrink-0 px-6 py-4 mt-auto h idde n z-20" >
< form id = "chat-form" class = "flex items-end gap-3 w-full !w-full !max-w-none m-0 " >
< div class = "telegram-input-container flex-1 w-full flex items-end " >
< textarea id = "chat-input" class = "telegram-message-input w-full resize-none overflow-y-auto chat-scrollbar "
rows="1" placeholder="{% trans 'Type your message...' %}" style="min-height: 24px; max-height: 150px; line-height: 1.5;">< / textarea >
< / div >
< button type = "submit" id = "send-btn" class = "telegram-action-btn send-btn-telegram shadow-md" >
< span class = "material-symbols-outlined text-[20px] ml-1" > send< / span >