mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
fix: allow protected-part entrance animations and close remaining hide bypasses
Only inspect keyframe frames an animation can rest on, parse animation names correctly, and close remaining hide-selector and value bypasses while still allowing large layout restyles.
This commit is contained in:
1 parent
a4ae4de82f
commit
fa720bf260
6 files changed
+731
-177
No files matched your search
@@ -33,6 +33,7 @@
|
||||
<div
|
||||
ref="recoveryPopover"
|
||||
popover="manual"
|
||||
@keydown.escape="shortcutOpen = false"
|
||||
class="ws-host-recovery"
|
||||
data-ws-host-recovery
|
||||
role="region"
|
||||
@@ -164,15 +165,12 @@ function openLibrary() {
|
||||
function onKeydown(event: KeyboardEvent) {
|
||||
if (event.repeat || !thirdPartyAllowed.value) return;
|
||||
// The recovery chord must survive a capture-phase preventDefault() from a
|
||||
// skin or plugin, so it runs before the defaultPrevented check below.
|
||||
// skin or plugin, so it is handled before anything else.
|
||||
if (isRecoveryShortcut(event)) {
|
||||
event.preventDefault();
|
||||
shortcutOpen.value = true;
|
||||
void nextTick(() => recoveryPopover.value?.querySelector("button")?.focus());
|
||||
return;
|
||||
void nextTick(() => { syncPopover(); recoveryPopover.value?.querySelector("button")?.focus(); });
|
||||
}
|
||||
if (event.defaultPrevented) return;
|
||||
if (event.key === "Escape" && shortcutOpen.value) shortcutOpen.value = false;
|
||||
}
|
||||
|
||||
let reachabilityTimer: ReturnType<typeof setInterval> | undefined;
|
||||
|
||||
@@ -35,6 +35,7 @@ const SKIN_LOAD_LAYER_CSS = `
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
width: min(720px, calc(100vw - 24px));
|
||||
box-sizing: border-box;
|
||||
padding: 10px 12px;
|
||||
transform: translateX(-50%);
|
||||
border: 1px solid #f59e0b;
|
||||
|
||||
Reference in new issue
Block a user