From 9158f4f8f1e12067f337fe2ce856e20c5db1380a Mon Sep 17 00:00:00 2001 From: sir-wilhelm Date: Mon, 8 Sep 2025 19:16:12 -0500 Subject: [PATCH] Add chapter duration next to start time. This adds the duration to the chapter table on the book page. --- components/tables/ChaptersTable.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/tables/ChaptersTable.vue b/components/tables/ChaptersTable.vue index 2144706b..8c056971 100644 --- a/components/tables/ChaptersTable.vue +++ b/components/tables/ChaptersTable.vue @@ -15,6 +15,7 @@ {{ $strings.LabelTitle }} {{ $strings.LabelStart }} + {{ $strings.LabelDuration }} @@ -23,6 +24,9 @@ {{ $secondsToTimestamp(chapter.start) }} + + {{ $secondsToTimestamp(Math.max(0, chapter.end - chapter.start)) }} +