Fix TUI screen wrapping, channel selection/creation, and online members presence

This commit is contained in:
tyuXX 2026-10-11 17:21:54 +00:00
parent cbc24e7672
commit 25696db42c
12 changed files with 582 additions and 109 deletions

View file

@ -166,6 +166,127 @@ html, body {
padding: 10px 16px;
background-color: rgba(19, 27, 46, 0.7);
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.chat-header-actions {
display: flex;
align-items: center;
gap: 8px;
}
.btn-outline-members {
background: rgba(30, 41, 59, 0.6);
border: 1px solid var(--border-color);
color: var(--text-main);
padding: 4px 10px;
border-radius: 6px;
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 6px;
transition: all 0.15s;
}
.btn-outline-members:hover {
border-color: var(--accent);
background: rgba(56, 189, 248, 0.1);
color: var(--accent);
}
.chat-content-container {
display: flex;
flex: 1;
min-height: 0;
overflow: hidden;
position: relative;
}
.chat-main-area {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
height: 100%;
}
.chat-members-sidebar {
width: 230px;
background-color: rgba(15, 23, 42, 0.75);
border-left: 1px solid var(--border-color);
display: flex;
flex-direction: column;
flex-shrink: 0;
height: 100%;
transition: transform 0.2s ease, width 0.2s ease, opacity 0.2s ease;
}
.chat-members-sidebar.closed {
display: none;
}
.members-sidebar-header {
padding: 12px 14px;
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.member-count-badge {
background-color: rgba(34, 197, 94, 0.15);
color: #22c55e;
font-size: 0.75rem;
padding: 2px 7px;
border-radius: 999px;
font-weight: 600;
}
.chat-online-users-list {
flex: 1;
overflow-y: auto;
padding: 8px 10px;
display: flex;
flex-direction: column;
gap: 4px;
}
.chat-member-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 8px;
border-radius: 6px;
font-size: 0.88rem;
transition: background 0.15s;
}
.chat-member-item:hover {
background-color: rgba(255, 255, 255, 0.04);
}
.chat-member-meta {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.chat-member-name {
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.channel-info {
@ -700,6 +821,17 @@ html, body {
.user-badge {
display: none;
}
.chat-members-sidebar {
position: absolute;
right: 0;
top: 0;
bottom: 0;
z-index: 50;
width: 200px;
background-color: #0b1120;
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.7);
}
}
/* Drag & Drop Overlay */