We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c571d4 commit bbe35e3Copy full SHA for bbe35e3
src/components/currentVerse.tsx
@@ -314,6 +314,10 @@ export function CurrentVerse({
314
inputRef.current?.focus()
315
}}
316
>
317
+ <span
318
+ id={'scroll-anchor'}
319
+ className={'inline-block -translate-y-36'}
320
+ />
321
{verse.nodes.map((atom, aIndexPrime) => {
322
const aIndex = verse.nodes
323
.slice(0, aIndexPrime)
@@ -428,6 +432,10 @@ export function CurrentVerse({
428
432
onInput={handleInput}
429
433
tabIndex={-1}
430
434
onFocus={() => {
435
+ document.getElementById('scroll-anchor')?.scrollIntoView({
436
+ block: 'start',
437
+ behavior: 'smooth',
438
+ })
431
439
setIsArenaFocused(true)
440
441
onBlur={() => {
0 commit comments