[F] Fix caret

This commit is contained in:
2025-11-23 14:20:29 +08:00
parent ffca84bf7b
commit 1de19d82aa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export function processLrcLine(line: LyricSegment[]): ProcLrcLine {
const fuzzyMatch = [['わ', 'は'], ['を', 'お'], ['ず', 'づ'], ['が', 'は'],
['ぁ', 'あ'], ['ぃ', 'い'], ['ぅ', 'う'], ['ぇ', 'え'], ['ぉ', 'お'],
['ゃ', 'や'], ['ゅ', 'ゆ'], ['ょ', 'よ'], ['っ', 'つ'],
['た', 'だ'], ['て', 'で'],
['た', 'だ'], ['て', 'で'], ['か', 'が'],
]
export function fuzzyEquals(kana1: string, kana2: string): string {
[kana1, kana2] = [toHiragana(kana1), toHiragana(kana2)]
+1 -1
View File
@@ -69,7 +69,7 @@
<div bind:this={lrcWrapper} class="lrc-wrapper scroll-here" lang="ja-JP">
<div class="vbox gap-12px py-32px relative min-h-full lrc-content">
{#if showCaret}
<div bind:this={caret} class="absolute bg-amber w-2px h-24px transition-all duration-75 z-10"></div>
<div bind:this={caret} class="absolute bg-amber w-2px h-24px transition-all duration-75 z-5"></div>
{/if}
{#each lines as line, l}
<div class="lrc p-content text-center m3-font-body-large" class:active={l === currentLineIndex} role="button" tabindex="0"