Skip to content

Commit

Permalink
Update:Change chapters table End column to a Duration column #3093
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Jun 21, 2024
1 parent 72c1407 commit e52b695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/components/tables/ChaptersTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<th class="text-left w-16"><span class="px-4">Id</span></th>
<th class="text-left">{{ $strings.LabelTitle }}</th>
<th class="text-center">{{ $strings.LabelStart }}</th>
<th class="text-center">{{ $strings.LabelEnd }}</th>
<th class="text-center">{{ $strings.LabelDuration }}</th>
</tr>
<tr v-for="chapter in chapters" :key="chapter.id">
<td class="text-left">
Expand All @@ -27,8 +27,8 @@
<td class="font-mono text-center hover:underline cursor-pointer" @click.stop="goToTimestamp(chapter.start)">
{{ $secondsToTimestamp(chapter.start) }}
</td>
<td class="font-mono text-center hover:underline cursor-pointer" @click.stop="goToTimestamp(chapter.start)">
{{ $secondsToTimestamp(chapter.end) }}
<td class="font-mono text-center">
{{ $secondsToTimestamp(Math.max(0, chapter.end - chapter.start)) }}
</td>
</tr>
</table>
Expand Down

0 comments on commit e52b695

Please sign in to comment.