Feature: Watch Together - Chat, Voting, Sync-Indicator, Join-per-Link

- Raumliste zeigt jetzt Teilnehmernamen
- Join per Link (?wt=roomId) für einfaches Teilen
- Sync-Indikator (grün/gelb/rot) zeigt Synchronstatus
- Pause/Skip-Voting für Nicht-Host-Teilnehmer
- In-Room Chat mit Nachrichtenverlauf
- "Gesehene entfernen" Button für Host in der Queue
- REST endpoint GET /api/watch-together/room/:id

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Daniel 2026-03-07 22:38:51 +01:00
parent c79a8675b0
commit 8aefb49ff3
3 changed files with 442 additions and 2 deletions

View file

@ -828,3 +828,174 @@
padding: 6px 12px;
white-space: nowrap;
}
/*
SYNC INDICATOR
*/
.wt-sync-dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
}
.wt-sync-synced { background: #2ecc71; box-shadow: 0 0 6px rgba(46, 204, 113, 0.5); }
.wt-sync-drifting { background: #f1c40f; box-shadow: 0 0 6px rgba(241, 196, 15, 0.5); }
.wt-sync-desynced { background: #e74c3c; box-shadow: 0 0 6px rgba(231, 76, 60, 0.5); }
/*
VOTE BUTTONS
*/
.wt-vote-btn {
background: rgba(255, 255, 255, 0.08) !important;
border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.wt-vote-btn:hover:not(:disabled) {
background: rgba(230, 126, 34, 0.2) !important;
border-color: var(--accent) !important;
}
.wt-vote-count {
font-size: 12px;
color: var(--accent);
font-weight: 600;
white-space: nowrap;
padding: 2px 8px;
background: rgba(230, 126, 34, 0.12);
border-radius: 4px;
}
/*
HEADER BUTTONS
*/
.wt-header-btn {
background: rgba(255, 255, 255, 0.1);
border: none;
color: #fff;
padding: 8px 14px;
border-radius: var(--radius);
cursor: pointer;
font-size: 13px;
transition: background var(--transition);
}
.wt-header-btn:hover {
background: rgba(255, 255, 255, 0.2);
}
/*
CHAT PANEL
*/
.wt-chat-panel {
width: 260px;
background: var(--bg-secondary);
border-left: 1px solid var(--bg-tertiary);
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.wt-chat-header {
padding: 14px 16px;
font-weight: 600;
font-size: 14px;
color: var(--text-normal);
border-bottom: 1px solid var(--bg-tertiary);
flex-shrink: 0;
}
.wt-chat-messages {
flex: 1;
overflow-y: auto;
padding: 8px 12px;
scrollbar-width: thin;
scrollbar-color: var(--bg-tertiary) transparent;
}
.wt-chat-messages::-webkit-scrollbar { width: 4px; }
.wt-chat-messages::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 2px; }
.wt-chat-empty {
padding: 24px 8px;
text-align: center;
color: var(--text-faint);
font-size: 13px;
}
.wt-chat-msg {
margin-bottom: 6px;
font-size: 13px;
line-height: 1.4;
word-break: break-word;
}
.wt-chat-sender {
font-weight: 600;
color: var(--accent);
margin-right: 6px;
}
.wt-chat-text {
color: var(--text-normal);
}
.wt-chat-input-row {
padding: 10px 12px;
display: flex;
gap: 6px;
border-top: 1px solid var(--bg-tertiary);
flex-shrink: 0;
}
.wt-chat-input {
flex: 1;
font-size: 13px;
padding: 8px 10px;
}
.wt-chat-send-btn {
padding: 8px 12px;
font-size: 13px;
flex-shrink: 0;
}
/*
QUEUE HEADER CLEAR BUTTON
*/
.wt-queue-header {
display: flex;
align-items: center;
justify-content: space-between;
}
.wt-queue-clear-btn {
background: none;
border: none;
color: var(--text-faint);
font-size: 11px;
cursor: pointer;
padding: 2px 6px;
border-radius: 4px;
transition: all var(--transition);
}
.wt-queue-clear-btn:hover {
color: var(--danger);
background: rgba(237, 66, 69, 0.12);
}
/*
TILE MEMBER NAMES
*/
.wt-tile-members-list {
font-size: 11px;
color: var(--text-faint);
padding: 0 12px 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/*
RESPONSIVE CHAT
*/
@media (max-width: 768px) {
.wt-chat-panel {
width: 100%;
max-height: 30vh;
border-left: none;
border-top: 1px solid var(--bg-tertiary);
}
}