Skip to content

Commit c96a640

Browse files
add comment
1 parent ec981c5 commit c96a640

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/routes/Detail.svelte

+3-1
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,12 @@
285285
data-popup="popupVerse"
286286
bind:this={floating}
287287
>
288+
<!-- if manuscriptHandles is an array, we create a list of Links, if it if either Fassungen or fr, we just create a paragraph that informs about the verse.-->
288289
{#if Array.isArray(manuscriptHandles)}
289290
<ul>
290291
{#each manuscriptHandles as mHandle}
291292
<li>
293+
<!-- These links are not clickable since it's not possible to put the cursor over it, but it might be possible to access the links with ARIA means. -->
292294
<a href={`${base}/textzeugen/${mHandle}/${verse}`} class="hover:text-secondary-900">
293295
{@html siglaFromHandle(mHandle)}: {verse}
294296
</a>
@@ -357,7 +359,7 @@
357359
{#if values}
358360
{#if isNaN(values[1])}
359361
{@const verseNumber = i + selection.start}
360-
{#if values.length === 1}
362+
{#if values?.lenth === 1}
361363
<a
362364
href={`${base}/textzeugen/${values[0]}/${verseNumber}`}
363365
aria-label={`${values[0]}.${verseNumber}`}

0 commit comments

Comments
 (0)