Add client poking (send and receive)

Uses tsclientlib's existing MessageTarget::Poke support end to end: a
poke button on each client row opens a small compose overlay (an
optional message, like TeamSpeak's own poke), and incoming pokes show
as a dismissible, auto-expiring banner.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
MoepchiandClaude Sonnet 5 committed 2026-07-28 20:51:50 +02:00
1 parent 76cb90360c
commit ec034d2d6b
5 files changed
+214 -2

No files matched your search

+97
View File
@@ -218,6 +218,25 @@
opacity: 0.85;
}
.ts-poke-button {
margin-left: auto;
background: transparent;
border: none;
cursor: pointer;
font-size: 11px;
padding: 0 0.2rem;
opacity: 0;
transition: opacity 0.1s;
}
.ts-client-row:hover .ts-poke-button {
opacity: 0.85;
}
.ts-poke-button:hover {
opacity: 1 !important;
}
.ts-mic-on {
background: color-mix(in srgb, #4caf50 30%, var(--button-bg-1)) !important;
}
@@ -363,3 +382,81 @@
.ts-connect-error button:hover {
opacity: 1;
}
.ts-poke-compose-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.35);
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
.ts-poke-compose {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.9rem 1.1rem;
background: var(--bg-toolbar-1);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.ts-poke-compose input {
background: var(--input-bg);
color: var(--input-text);
border: 1px solid var(--border);
border-radius: 3px;
padding: 0.3rem 0.5rem;
min-width: 220px;
}
.ts-poke-compose button {
background: linear-gradient(var(--button-bg-1), var(--button-bg-2));
border: 1px solid var(--border);
border-radius: 3px;
color: var(--text);
cursor: pointer;
padding: 0.3rem 0.7rem;
}
.ts-poke-compose button:hover {
background: linear-gradient(var(--button-bg-hover-1), var(--button-bg-hover-2));
}
.ts-poke-notice {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding: 0.5rem 0.9rem;
background: #e8a53d;
color: #1a1a1a;
font-size: 13px;
animation: ts-poke-flash 0.4s ease-in-out 2;
}
@keyframes ts-poke-flash {
0%, 100% {
filter: brightness(1);
}
50% {
filter: brightness(1.3);
}
}
.ts-poke-notice button {
background: transparent;
border: none;
color: #1a1a1a;
cursor: pointer;
font-size: 13px;
opacity: 0.7;
}
.ts-poke-notice button:hover {
opacity: 1;
}