From 393bfde886a4e0d237a4a1a138342c5b26e9d17c Mon Sep 17 00:00:00 2001 From: SashaXser <24498484+SashaXser@users.noreply.github.com> Date: Wed, 17 Jan 2024 16:36:46 +0400 Subject: [PATCH] Add files via upload --- src/styles/components/menu.scss | 1 - src/subtitles.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/styles/components/menu.scss b/src/styles/components/menu.scss index a047842bd..cd74909f0 100644 --- a/src/styles/components/menu.scss +++ b/src/styles/components/menu.scss @@ -42,7 +42,6 @@ &[hidden] { pointer-events: none; display: block !important; - pointer-events: none; visibility: hidden; opacity: 0; transform: translate(-50%) scale(0); diff --git a/src/subtitles.js b/src/subtitles.js index e60eb47ce..58ea9ac84 100644 --- a/src/subtitles.js +++ b/src/subtitles.js @@ -112,7 +112,7 @@ function formatYoutubeSubtitles(subtitles) { for (let i = 0; i < subtitles.events.length; i++) { if (!subtitles.events[i].segs) continue; const text = subtitles.events[i].segs - .map((e) => e.utf8.replace(/^ +| +$/g, "")) + .map((e) => e.utf8.replace(/(^ +)|( +$)/g, "")) .join(" "); let durationMs = subtitles.events[i].dDurationMs; if (