Changeset 0.23.1 (#154)

This commit is contained in:
2026-03-06 13:26:25 +00:00
parent 2fc620e1ac
commit 4c6555cb06
38 changed files with 1536 additions and 4031 deletions

View File

@@ -522,3 +522,241 @@
.admin-content-body { padding: 16px; }
.editor-tree { width: 180px; }
}
/* =====================================================
v0.23.1 — Three-section sidebar (Projects/Channels/Chats)
===================================================== */
/* Scrollable nav container */
.sidebar-nav {
flex: 1;
overflow-y: auto;
padding: 4px 0;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
/* Section wrapper */
.sb-section { margin-bottom: 2px; }
/* Section header row */
.sb-section-header {
display: flex;
align-items: center;
gap: 5px;
padding: 6px 10px 4px 10px;
cursor: pointer;
user-select: none;
}
.sb-section-header:hover .sb-section-add { opacity: 1; }
.sidebar.collapsed .sb-section-header { justify-content: center; padding: 6px 0; }
.sb-section-arrow {
font-size: 9px;
color: var(--text-3);
width: 10px;
flex-shrink: 0;
}
.sidebar.collapsed .sb-section-arrow { display: none; }
.sb-section-label {
font-size: 10px;
font-weight: 700;
color: var(--text-3);
text-transform: uppercase;
letter-spacing: 0.7px;
flex: 1;
}
.sidebar.collapsed .sb-section-label { display: none; }
.sb-section-add {
opacity: 0;
background: none;
border: none;
color: var(--text-3);
cursor: pointer;
padding: 2px;
border-radius: 4px;
display: flex;
align-items: center;
transition: opacity 0.1s, color 0.1s;
flex-shrink: 0;
}
.sb-section-add:hover { color: var(--text); }
.sidebar.collapsed .sb-section-add { display: none; }
.sb-section-body { /* no extra padding — children handle it */ }
.sb-section-empty {
font-size: 11px;
color: var(--text-3);
padding: 4px 14px 8px;
font-style: italic;
}
.sidebar.collapsed .sb-section-empty { display: none; }
/* ── Projects section items ── */
.sb-proj-group { margin-bottom: 1px; }
.sb-proj-group.drag-over .sb-proj-header { background: var(--accent-dim); }
.sb-proj-header {
display: flex;
align-items: center;
gap: 5px;
padding: 5px 10px;
cursor: pointer;
border-radius: 6px;
margin: 0 4px;
transition: background 0.1s;
}
.sb-proj-header:hover { background: var(--bg-hover); }
.sb-proj-group.active .sb-proj-header {
background: color-mix(in srgb, var(--accent) 8%, transparent);
color: var(--accent);
}
.sb-proj-group.active .sb-proj-name { color: var(--accent); font-weight: 600; }
.sb-proj-group.active .sb-proj-dot { background: var(--accent); }
.sb-proj-pin { font-size: 11px; margin-left: auto; opacity: 0.75; flex-shrink: 0; }
.sidebar.collapsed .sb-proj-header { justify-content: center; padding: 5px 0; margin: 0 6px; }
.sb-proj-arrow { font-size: 9px; color: var(--text-3); flex-shrink: 0; }
.sidebar.collapsed .sb-proj-arrow { display: none; }
.sb-proj-dot {
width: 8px; height: 8px; border-radius: 50%;
background: var(--text-3);
flex-shrink: 0;
}
.sb-proj-name {
flex: 1;
font-size: 12px;
font-weight: 600;
color: var(--text-2);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sidebar.collapsed .sb-proj-name { display: none; }
.sb-proj-count {
font-size: 10px;
color: var(--text-3);
min-width: 14px;
text-align: right;
}
.sidebar.collapsed .sb-proj-count { display: none; }
.sb-proj-menu {
opacity: 0;
background: none;
border: none;
color: var(--text-3);
cursor: pointer;
font-size: 14px;
padding: 0 2px;
line-height: 1;
border-radius: 4px;
transition: opacity 0.1s;
}
.sb-proj-header:hover .sb-proj-menu { opacity: 1; }
.sidebar.collapsed .sb-proj-menu { display: none; }
.sb-proj-empty {
font-size: 11px;
color: var(--text-3);
padding: 4px 10px 6px 28px;
font-style: italic;
}
.sb-show-archived {
background: none;
border: none;
font-size: 11px;
color: var(--text-3);
cursor: pointer;
padding: 4px 14px 6px;
font-family: inherit;
display: block;
width: 100%;
text-align: left;
}
.sb-show-archived:hover { color: var(--text-2); }
/* ── Channels section items ── */
.sb-channel-item {
display: flex;
align-items: center;
gap: 7px;
padding: 5px 12px;
border-radius: 6px;
margin: 0 4px;
cursor: pointer;
font-size: 13px;
color: var(--text-2);
position: relative;
transition: background 0.1s;
}
.sb-channel-item:hover { background: var(--bg-hover); color: var(--text); }
.sb-channel-item.active { background: var(--bg-raised); color: var(--text); }
.sidebar.collapsed .sb-channel-item { justify-content: center; padding: 5px 0; margin: 0 6px; }
.sb-ch-icon { color: var(--text-3); flex-shrink: 0; display: flex; }
.sb-ch-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar.collapsed .sb-ch-name { display: none; }
.sb-presence {
width: 7px; height: 7px; border-radius: 50%;
background: var(--text-3);
flex-shrink: 0;
}
.sb-presence.online { background: var(--success-light, #22c55e); }
.sb-unread {
font-size: 10px;
font-weight: 700;
background: var(--accent);
color: #fff;
border-radius: 10px;
padding: 1px 5px;
min-width: 16px;
text-align: center;
flex-shrink: 0;
}
/* ── Chats section folder items ── */
.sb-folder-group { margin-bottom: 1px; }
.sb-folder-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-folder-menu {
display: none; background: none; border: none; cursor: pointer;
color: var(--text-3); font-size: 14px; padding: 0 2px; line-height: 1;
flex-shrink: 0; border-radius: 3px;
}
.sb-folder-menu:hover { color: var(--text); background: var(--bg-hover); }
.sb-folder-header:hover .sb-folder-menu { display: block; }
.sb-folder-empty { padding: 4px 14px 6px 28px; font-size: 11px; color: var(--text-3); font-style: italic; }
.sb-folder-header {
display: flex;
align-items: center;
gap: 6px;
padding: 5px 10px;
border-radius: 6px;
margin: 0 4px;
cursor: pointer;
font-size: 12px;
font-weight: 500;
color: var(--text-3);
transition: background 0.1s;
}
.sb-folder-header:hover { background: var(--bg-hover); color: var(--text-2); }
.sb-folder-arrow { margin-left: auto; font-size: 9px; }
/* Indented chat items inside folders */
.chat-item.indented { padding-left: 28px; }