Changeset 0.37.14 (#226)
Co-authored-by: gobha <jasafpro@gmail.com> Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
padding: 8px 12px;
|
||||
background: var(--accent-dim, rgba(179, 138, 78, 0.1));
|
||||
border: 1px solid var(--accent, #b38a4e);
|
||||
@@ -53,6 +53,7 @@
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.sw-chat-surface__new-folder-btn,
|
||||
.sw-chat-surface__collapse-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -68,6 +69,7 @@
|
||||
transition: color 0.15s, background 0.15s;
|
||||
}
|
||||
|
||||
.sw-chat-surface__new-folder-btn:hover,
|
||||
.sw-chat-surface__collapse-btn:hover {
|
||||
color: var(--text, #eee);
|
||||
background: var(--bg, #0e0e10);
|
||||
@@ -77,6 +79,52 @@
|
||||
background: rgba(179, 138, 78, 0.2);
|
||||
}
|
||||
|
||||
.sw-chat-surface__new-menu-wrap {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.sw-chat-surface__new-menu {
|
||||
position: absolute;
|
||||
top: calc(100% + 4px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: var(--surface, #1a1a1e);
|
||||
border: 1px solid var(--border, #2a2a2e);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
|
||||
z-index: 130;
|
||||
padding: 4px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.sw-chat-surface__new-menu button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 12px;
|
||||
background: none;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
color: var(--text, #eee);
|
||||
font-size: 12px;
|
||||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.sw-chat-surface__new-menu button:hover {
|
||||
background: var(--bg-hover, rgba(255, 255, 255, 0.06));
|
||||
}
|
||||
|
||||
.sw-chat-surface__new-menu-icon {
|
||||
width: 18px;
|
||||
text-align: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* ── Search ───────────────────────────────── */
|
||||
|
||||
.sw-chat-surface__search-wrap {
|
||||
@@ -95,9 +143,9 @@
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.sw-chat-surface__search {
|
||||
input.sw-chat-surface__search {
|
||||
width: 100%;
|
||||
padding: 6px 8px 6px 30px;
|
||||
padding: 6px 8px 6px 34px;
|
||||
background: var(--bg, #0e0e10);
|
||||
border: 1px solid var(--border, #2a2a2e);
|
||||
border-radius: 6px;
|
||||
@@ -108,7 +156,7 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.sw-chat-surface__search:focus {
|
||||
input.sw-chat-surface__search:focus {
|
||||
border-color: var(--accent, #b38a4e);
|
||||
}
|
||||
|
||||
@@ -222,7 +270,7 @@
|
||||
}
|
||||
|
||||
.sw-chat-surface__item-menu {
|
||||
display: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 22px;
|
||||
@@ -234,10 +282,14 @@
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
padding: 0;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sw-chat-surface__item:hover .sw-chat-surface__item-menu {
|
||||
display: flex;
|
||||
.sw-chat-surface__item:hover .sw-chat-surface__item-menu,
|
||||
.sw-chat-surface__folder-header:hover .sw-chat-surface__item-menu {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.sw-chat-surface__item-menu:hover {
|
||||
@@ -261,6 +313,29 @@
|
||||
|
||||
.sw-chat-surface__folder {
|
||||
margin: 2px 0;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.sw-chat-surface__folder--drag-over {
|
||||
background: var(--accent-dim, rgba(179, 138, 78, 0.1));
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.sw-chat-surface__root-drop {
|
||||
margin: 4px 8px;
|
||||
padding: 10px;
|
||||
border: 2px dashed var(--border, #2a2a2e);
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
color: var(--text-3, #555);
|
||||
transition: border-color 0.15s, background 0.15s;
|
||||
}
|
||||
|
||||
.sw-chat-surface__root-drop--active {
|
||||
border-color: var(--accent, #b38a4e);
|
||||
background: var(--accent-dim, rgba(179, 138, 78, 0.1));
|
||||
color: var(--text-2, #999);
|
||||
}
|
||||
|
||||
.sw-chat-surface__folder-header {
|
||||
@@ -270,6 +345,25 @@
|
||||
padding: 4px 12px;
|
||||
color: var(--text-3, #555);
|
||||
font-size: 11px;
|
||||
cursor: pointer;
|
||||
border-radius: 6px;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.sw-chat-surface__folder-header:hover {
|
||||
background: var(--bg, #0e0e10);
|
||||
}
|
||||
|
||||
/* Draggable items */
|
||||
.sw-chat-surface__item[draggable="true"],
|
||||
.sw-chat-surface__folder[draggable="true"] {
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.sw-chat-surface__item[draggable="true"]:active,
|
||||
.sw-chat-surface__folder[draggable="true"]:active {
|
||||
cursor: grabbing;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.sw-chat-surface__folder-name {
|
||||
@@ -380,6 +474,180 @@
|
||||
background: var(--bg, #0e0e10);
|
||||
}
|
||||
|
||||
/* ── Header Buttons (members, settings) ───── */
|
||||
|
||||
.sw-chat-surface__header-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background: none;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
color: var(--text-3, #555);
|
||||
cursor: pointer;
|
||||
transition: color 0.15s, background 0.15s;
|
||||
}
|
||||
|
||||
.sw-chat-surface__header-btn:hover {
|
||||
color: var(--text, #eee);
|
||||
background: var(--bg, #0e0e10);
|
||||
}
|
||||
|
||||
/* ── Channel Panel Shared ─────────────────── */
|
||||
|
||||
.sw-panel-loading,
|
||||
.sw-panel-empty {
|
||||
padding: 24px 16px;
|
||||
text-align: center;
|
||||
color: var(--text-muted, #888);
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
/* ── Members Panel ────────────────────────── */
|
||||
|
||||
.sw-members-list {
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
.sw-members-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 16px;
|
||||
transition: background 0.12s;
|
||||
}
|
||||
|
||||
.sw-members-row:hover {
|
||||
background: var(--bg, rgba(255,255,255,0.03));
|
||||
}
|
||||
|
||||
.sw-members-avatar {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent, #b38a4e);
|
||||
color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.75em;
|
||||
font-weight: 600;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sw-members-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
}
|
||||
|
||||
.sw-members-name {
|
||||
font-size: 0.9em;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.sw-members-type {
|
||||
font-size: 0.75em;
|
||||
color: var(--text-muted, #888);
|
||||
}
|
||||
|
||||
.sw-members-role {
|
||||
font-size: 0.8em;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
background: var(--bg-secondary, #151517);
|
||||
color: var(--text, #eee);
|
||||
border: 1px solid var(--border, #2a2a2e);
|
||||
}
|
||||
|
||||
.sw-members-remove {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-muted, #888);
|
||||
cursor: pointer;
|
||||
font-size: 1.1em;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
transition: color 0.15s, background 0.15s;
|
||||
}
|
||||
|
||||
.sw-members-remove:hover {
|
||||
color: #e55;
|
||||
background: rgba(238,85,85,0.1);
|
||||
}
|
||||
|
||||
.sw-members-add {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
padding: 12px 16px;
|
||||
border-top: 1px solid var(--border, #2a2a2e);
|
||||
}
|
||||
|
||||
.sw-members-add input {
|
||||
flex: 1;
|
||||
padding: 6px 10px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border, #2a2a2e);
|
||||
background: var(--bg, #0e0e10);
|
||||
color: var(--text, #eee);
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
/* ── Settings Panel ───────────────────────── */
|
||||
|
||||
.sw-settings-form {
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.sw-settings-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.sw-settings-field label {
|
||||
font-size: 0.8em;
|
||||
font-weight: 500;
|
||||
color: var(--text-muted, #888);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.sw-settings-field input,
|
||||
.sw-settings-field textarea,
|
||||
.sw-settings-field select {
|
||||
padding: 8px 10px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border, #2a2a2e);
|
||||
background: var(--bg, #0e0e10);
|
||||
color: var(--text, #eee);
|
||||
font-size: 0.9em;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.sw-settings-info {
|
||||
padding: 10px 0;
|
||||
border-top: 1px solid var(--border, rgba(255,255,255,0.06));
|
||||
font-size: 0.82em;
|
||||
color: var(--text-muted, #888);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.sw-settings-save {
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
/* ── Tools Button ─────────────────────────── */
|
||||
|
||||
.sw-chat-surface__tools-btn {
|
||||
@@ -595,14 +863,169 @@
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 280px;
|
||||
z-index: 20;
|
||||
z-index: 120;
|
||||
}
|
||||
|
||||
.sw-chat-surface__sidebar-overlay {
|
||||
display: block;
|
||||
z-index: 110;
|
||||
}
|
||||
|
||||
.sw-chat-surface__collapse-btn {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Ensure touch targets are >= 44px */
|
||||
.sw-chat-surface__item {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.sw-chat-surface__folder-header {
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
/* Prevent iOS zoom on search */
|
||||
input.sw-chat-surface__search {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* Context menu: constrain to viewport */
|
||||
.sw-chat-surface__context-menu {
|
||||
max-width: calc(100vw - 16px);
|
||||
right: 8px;
|
||||
left: auto !important;
|
||||
}
|
||||
|
||||
/* Header buttons: tighter on mobile */
|
||||
.sw-chat-surface__sidebar-header {
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.sw-chat-surface__new-chat-btn {
|
||||
font-size: 12px;
|
||||
padding: 6px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Dashboard (no chat selected) ─────────── */
|
||||
|
||||
.sw-chat-dashboard {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
padding: 40px 24px;
|
||||
gap: 32px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__welcome {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__title {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: var(--text, #eee);
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__hint {
|
||||
font-size: 13px;
|
||||
color: var(--text-3, #555);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__actions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 12px;
|
||||
max-width: 360px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 20px 12px;
|
||||
background: var(--surface, #1a1a1e);
|
||||
border: 1px solid var(--border, #2a2a2e);
|
||||
border-radius: 10px;
|
||||
color: var(--text, #eee);
|
||||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.15s, background 0.15s;
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__card:hover {
|
||||
border-color: var(--accent, #b38a4e);
|
||||
background: var(--accent-dim, rgba(179, 138, 78, 0.08));
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__card-icon {
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__card-label {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__recent {
|
||||
max-width: 360px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__section-title {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--text-3, #555);
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__recent-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__recent-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 6px 10px;
|
||||
border-radius: 6px;
|
||||
font-size: 12px;
|
||||
color: var(--text-2, #999);
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__recent-icon {
|
||||
width: 16px;
|
||||
text-align: center;
|
||||
flex-shrink: 0;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.sw-chat-dashboard__recent-title {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.sw-chat-dashboard {
|
||||
padding: 24px 16px;
|
||||
}
|
||||
.sw-chat-dashboard__actions {
|
||||
gap: 8px;
|
||||
}
|
||||
.sw-chat-dashboard__card {
|
||||
padding: 16px 8px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user