Fix TUI screen wrapping, channel selection/creation, and online members presence
This commit is contained in:
parent
cbc24e7672
commit
25696db42c
12 changed files with 582 additions and 109 deletions
|
|
@ -72,22 +72,41 @@
|
|||
</select>
|
||||
<span class="channel-topic" id="activeChannelTopic"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="chat-messages" id="chatMessages">
|
||||
<div class="welcome-message">
|
||||
<h3 id="welcomeMotd">Welcome to GsDChat!</h3>
|
||||
<p>Select a channel or start chatting below.</p>
|
||||
<div class="chat-header-actions">
|
||||
<button type="button" class="btn btn-sm btn-outline-members" id="toggleMembersBtn" title="Toggle Online Members">
|
||||
👥 <span class="members-btn-label">Online</span> (<span id="chatHeaderOnlineCount">0</span>)
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="chat-input-bar">
|
||||
<label class="btn-icon upload-btn" title="Upload File">
|
||||
📎
|
||||
<input type="file" id="fileInput" style="display:none;">
|
||||
</label>
|
||||
<input type="text" id="messageInput" placeholder="Message #general... (or /help)" autocomplete="off">
|
||||
<button class="btn btn-primary send-btn" id="sendBtn">Send</button>
|
||||
<div class="chat-content-container">
|
||||
<div class="chat-main-area">
|
||||
<div class="chat-messages" id="chatMessages">
|
||||
<div class="welcome-message">
|
||||
<h3 id="welcomeMotd">Welcome to GsDChat!</h3>
|
||||
<p>Select a channel or start chatting below.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="chat-input-bar">
|
||||
<label class="btn-icon upload-btn" title="Upload File">
|
||||
📎
|
||||
<input type="file" id="fileInput" style="display:none;">
|
||||
</label>
|
||||
<input type="text" id="messageInput" placeholder="Message #general... (or /help)" autocomplete="off">
|
||||
<button class="btn btn-primary send-btn" id="sendBtn">Send</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<aside class="chat-members-sidebar" id="chatMembersSidebar">
|
||||
<div class="members-sidebar-header">
|
||||
<span>Online Members</span>
|
||||
<span class="member-count-badge" id="chatOnlineCountBadge">0</span>
|
||||
</div>
|
||||
<div class="chat-online-users-list" id="chatOnlineUsersList">
|
||||
<!-- Populated by JS -->
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
|
@ -123,7 +142,7 @@
|
|||
<section id="view-users" class="tab-view">
|
||||
<div class="view-header">
|
||||
<h2>Community Members</h2>
|
||||
<span class="user-count-badge" id="userCountBadge">0 Online</span>
|
||||
<span class="user-count-badge" id="userCountBadge">0 Online / 0 Total</span>
|
||||
</div>
|
||||
<div class="user-list" id="userList">
|
||||
<!-- Populated by JS -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue