DevPlace CI / test (pull_request) Failing after 1h7m10s
The topnav Messages icon opens a Chats panel (people search, recent conversations, New message, link to the full page). Picking a person opens a small chat window docked bottom-right; windows minimize to avatar heads with unread counts and survive navigation within the tab. Profile Send Message, the live message toast and message notifications on /notifications open the same window. Phones and /messages keep the full page. Each window is dp-chat in mode="window", sharing one WebSocket through chat/ChatSocketHub.js; chat/ConversationItem.js is the shared row builder. No server changes. The message input becomes [+] [text + emoji] [send] everywhere: + reveals the attach and GIF buttons, which tuck away while typing. Also fixes linked toasts never receiving clicks (pointer-events). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
353 lines
7.5 KiB
CSS
353 lines
7.5 KiB
CSS
/* retoor <retoor@molodetz.nl> */
|
|
|
|
dp-chat-dock {
|
|
--chat-window-width: 328px;
|
|
--chat-window-height: 455px;
|
|
--chat-panel-width: 360px;
|
|
--chat-head-size: 48px;
|
|
--chat-icon-size: 28px;
|
|
--chat-fab-lane: 64px;
|
|
display: contents;
|
|
}
|
|
|
|
.chat-icon-btn {
|
|
flex-shrink: 0;
|
|
width: var(--chat-icon-size);
|
|
height: var(--chat-icon-size);
|
|
padding: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: none;
|
|
border: none;
|
|
border-radius: 50%;
|
|
color: var(--text-secondary);
|
|
font-size: 0.9375rem;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.chat-icon-btn:hover,
|
|
.chat-icon-btn:focus-visible {
|
|
background: var(--bg-card-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ── Chats panel (opened from the topnav Messages icon) ─── */
|
|
|
|
.chat-panel {
|
|
position: fixed;
|
|
top: calc(var(--nav-height) + var(--space-xs));
|
|
right: var(--space-lg);
|
|
z-index: var(--z-nav-drop);
|
|
width: var(--chat-panel-width);
|
|
max-width: calc(100vw - var(--space-2xl));
|
|
max-height: calc(100vh - var(--nav-height) - var(--space-2xl));
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.chat-panel[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.chat-panel-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-md) var(--space-lg) var(--space-sm);
|
|
}
|
|
|
|
.chat-panel-title {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.chat-panel-search {
|
|
padding: 0 var(--space-lg) var(--space-sm);
|
|
}
|
|
|
|
.chat-panel-search-input {
|
|
width: 100%;
|
|
margin: 0;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.chat-panel-list {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
padding: 0 var(--space-sm) var(--space-sm);
|
|
}
|
|
|
|
.chat-panel-list .conversation-item,
|
|
.chat-compose-results .conversation-item {
|
|
border-radius: var(--radius);
|
|
color: var(--text-primary);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.chat-panel-list .empty-state,
|
|
.chat-compose-results .empty-state {
|
|
padding: var(--space-xl) var(--space-lg);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.chat-panel-footer {
|
|
display: block;
|
|
flex-shrink: 0;
|
|
padding: var(--space-md);
|
|
border-top: 1px solid var(--border);
|
|
text-align: center;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ── Bottom tray: docked chat windows + minimized heads ─── */
|
|
|
|
.chat-dock-tray {
|
|
position: fixed;
|
|
right: var(--space-lg);
|
|
bottom: 0;
|
|
z-index: var(--z-chat-dock);
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: var(--space-sm);
|
|
max-width: calc(100vw - var(--space-2xl));
|
|
pointer-events: none;
|
|
}
|
|
|
|
body:has(.feed-fab) .chat-dock-tray {
|
|
right: calc(var(--space-2xl) + var(--chat-fab-lane) + var(--space-sm));
|
|
}
|
|
|
|
.chat-dock-windows {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: var(--space-sm);
|
|
min-width: 0;
|
|
}
|
|
|
|
.chat-dock-heads {
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding-bottom: var(--space-lg);
|
|
}
|
|
|
|
.chat-dock-heads:empty {
|
|
display: none;
|
|
}
|
|
|
|
.chat-window,
|
|
.chat-head {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.chat-window {
|
|
position: relative;
|
|
width: var(--chat-window-width);
|
|
height: var(--chat-window-height);
|
|
max-height: calc(100vh - var(--nav-height) - var(--space-lg));
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-light);
|
|
border-bottom: none;
|
|
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
dp-chat[mode="window"] {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
dp-chat[mode="window"] .messages-main {
|
|
flex: 1;
|
|
}
|
|
|
|
.chat-window .messages-main-header {
|
|
gap: var(--space-sm);
|
|
padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-md);
|
|
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chat-window .messages-main-header:hover {
|
|
background: var(--bg-card-hover);
|
|
}
|
|
|
|
.chat-window .messages-header-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.chat-window .messages-main-header h3 {
|
|
font-size: 0.9375rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chat-window-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
margin-left: auto;
|
|
}
|
|
|
|
.chat-window .messages-thread {
|
|
padding: var(--space-md);
|
|
padding-bottom: var(--space-sm);
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.chat-window .message-bubble {
|
|
max-width: 80%;
|
|
padding: var(--space-sm) var(--space-md);
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.chat-window .message-bubble.grouped {
|
|
margin-top: calc(var(--space-xs) - var(--space-sm));
|
|
}
|
|
|
|
.chat-window .messages-input-area {
|
|
gap: var(--space-xs);
|
|
min-height: 0;
|
|
padding: var(--space-sm);
|
|
}
|
|
|
|
.chat-window .messages-input-area textarea {
|
|
padding: var(--space-xs) var(--space-sm);
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.chat-window .messages-send-btn,
|
|
.chat-window .composer-more-btn {
|
|
width: var(--chat-icon-size);
|
|
height: var(--chat-icon-size);
|
|
margin-bottom: var(--space-xs);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.chat-window .composer-more-btn {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.chat-window .composer-tools {
|
|
min-height: var(--chat-icon-size);
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.chat-window .messages-jump-new {
|
|
bottom: calc(var(--chat-head-size) + var(--space-lg));
|
|
}
|
|
|
|
/* ── New message window ─────────────────────────────────── */
|
|
|
|
.chat-window-compose .messages-main-header {
|
|
cursor: default;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.chat-window-compose .messages-main-header:hover {
|
|
background: none;
|
|
}
|
|
|
|
.chat-compose-to {
|
|
padding: var(--space-sm) var(--space-md);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.chat-compose-to label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
font-size: 0.875rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.chat-compose-input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
margin: 0;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.chat-compose-results {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
padding: var(--space-xs);
|
|
}
|
|
|
|
/* ── Minimized chat heads ───────────────────────────────── */
|
|
|
|
.chat-head {
|
|
position: relative;
|
|
}
|
|
|
|
.chat-head-open {
|
|
position: relative;
|
|
display: block;
|
|
padding: 0;
|
|
background: none;
|
|
border: none;
|
|
border-radius: 50%;
|
|
box-shadow: var(--shadow-lg);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chat-head-open .avatar-img {
|
|
width: var(--chat-head-size);
|
|
height: var(--chat-head-size);
|
|
}
|
|
|
|
.chat-head-badge {
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.chat-head .chat-head-close {
|
|
position: absolute;
|
|
top: calc(var(--space-xs) * -1);
|
|
left: calc(var(--space-xs) * -1);
|
|
width: var(--space-xl);
|
|
height: var(--space-xl);
|
|
font-size: 0.6875rem;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-light);
|
|
opacity: 0;
|
|
transition: opacity 0.1s ease;
|
|
}
|
|
|
|
.chat-head:hover .chat-head-close,
|
|
.chat-head:focus-within .chat-head-close {
|
|
opacity: 1;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
body:has(.feed-fab) .chat-dock-tray {
|
|
right: calc(var(--space-lg) + var(--chat-fab-lane) + var(--space-sm));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
dp-chat-dock {
|
|
display: none;
|
|
}
|
|
}
|