code cleanup & multi-channel support
This commit is contained in:
@@ -30,12 +30,18 @@ body {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.app-container {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
/* Chat Container */
|
||||
.chat-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
height: 100dvh;
|
||||
min-width: 100vw;
|
||||
margin: 0 0;
|
||||
background: #121212;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
@@ -46,12 +52,16 @@ body {
|
||||
padding: 10px;
|
||||
background: #1a1a1a;
|
||||
border-bottom: 1px solid #252525;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.chat-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
@@ -773,3 +783,153 @@ body {
|
||||
.checkbox-group a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Sidebar Styles */
|
||||
.sidebar {
|
||||
width: 240px;
|
||||
min-width: 180px;
|
||||
max-width: 400px;
|
||||
background: #0f0f0f;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-right: 1px solid #252525;
|
||||
position: relative;
|
||||
transition:
|
||||
margin-left 0.3s ease,
|
||||
opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.sidebar.hidden {
|
||||
margin-left: -240px;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.resize-handle {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 4px;
|
||||
cursor: ew-resize;
|
||||
background: transparent;
|
||||
transition: background 0.2s ease;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.resize-handle:hover {
|
||||
background: rgba(106, 90, 205, 0.5);
|
||||
}
|
||||
|
||||
.resize-handle:active {
|
||||
background: #6a5acd;
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
padding: 16px;
|
||||
border-bottom: 1px solid #252525;
|
||||
background: #1a1a1a;
|
||||
color: #ffffff;
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
letter-spacing: 0.3px;
|
||||
}
|
||||
|
||||
.channels-list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 10px 8px;
|
||||
}
|
||||
|
||||
.channel-item {
|
||||
padding: 10px 12px;
|
||||
margin: 3px 0;
|
||||
border-radius: 8px;
|
||||
color: #b0b0b0;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
border: 1px solid transparent;
|
||||
background: rgba(30, 30, 30, 0.3);
|
||||
}
|
||||
|
||||
.channel-item:hover {
|
||||
background: rgba(30, 30, 30, 0.6);
|
||||
border-color: #2a2a2a;
|
||||
color: #e0e0e0;
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
.channel-item.active {
|
||||
background: rgba(106, 90, 205, 0.15);
|
||||
border-color: rgba(106, 90, 205, 0.3);
|
||||
color: #ffffff;
|
||||
box-shadow: 0 2px 8px rgba(106, 90, 205, 0.2);
|
||||
}
|
||||
|
||||
.channel-icon {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #666;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.channel-item:hover .channel-icon {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.channel-item.active .channel-icon {
|
||||
color: #6a5acd;
|
||||
}
|
||||
|
||||
.channel-name {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Scrollbar styling for sidebar */
|
||||
.channels-list::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
.channels-list::-webkit-scrollbar-track {
|
||||
background: #0f0f0f;
|
||||
}
|
||||
|
||||
.channels-list::-webkit-scrollbar-thumb {
|
||||
background: #252525;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.channels-list::-webkit-scrollbar-thumb:hover {
|
||||
background: #333;
|
||||
}
|
||||
|
||||
.sidebar-toggle {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background: rgba(30, 30, 30, 0.6);
|
||||
border: 1px solid #2a2a2a;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s ease;
|
||||
flex-shrink: 0;
|
||||
color: #b0b0b0;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.sidebar-toggle:hover {
|
||||
background: rgba(106, 90, 205, 0.2);
|
||||
border-color: rgba(106, 90, 205, 0.3);
|
||||
color: #e0e0e0;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.sidebar-toggle:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user