mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-25 21:04:02 +02:00
Add chapter duration next to start time.
This adds the duration to the chapter table on the book page.
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th class="text-left">{{ $strings.LabelTitle }}</th>
|
<th class="text-left">{{ $strings.LabelTitle }}</th>
|
||||||
<th class="text-center w-16">{{ $strings.LabelStart }}</th>
|
<th class="text-center w-16">{{ $strings.LabelStart }}</th>
|
||||||
|
<th class="text-center w-16">{{ $strings.LabelDuration }}</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-for="chapter in chapters" :key="chapter.id">
|
<tr v-for="chapter in chapters" :key="chapter.id">
|
||||||
<td>
|
<td>
|
||||||
@@ -23,6 +24,9 @@
|
|||||||
<td class="font-mono text-center underline w-16" @click.stop="goToTimestamp(chapter.start)">
|
<td class="font-mono text-center underline w-16" @click.stop="goToTimestamp(chapter.start)">
|
||||||
{{ $secondsToTimestamp(chapter.start) }}
|
{{ $secondsToTimestamp(chapter.start) }}
|
||||||
</td>
|
</td>
|
||||||
|
<td class="font-mono text-center">
|
||||||
|
{{ $secondsToTimestamp(Math.max(0, chapter.end - chapter.start)) }}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</transition>
|
</transition>
|
||||||
|
|||||||
Reference in New Issue
Block a user