Added support for going to comment channel

This commit is contained in:
WardPearce
2024-05-18 19:06:13 +12:00
parent 1932244bd2
commit 2f783995b7
2 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ export interface ReturnYTDislikes {
export interface Comment {
author: string;
authorThumbnails: Image[];
authorID: string;
authorId: string;
authorUrl: string;
isEdited: boolean;
isPinned: boolean;
+8 -6
View File
@@ -38,12 +38,14 @@
/>
<div>
<div class="row">
<p>
<span class:bold={true} class:channel-owner={comment.authorIsChannelOwner}
>{comment.author}</span
>
<span class="secondary-text">{comment.publishedText}</span>
</p>
<a href={`/channel/${comment.authorId}`}>
<p class="no-margin">
<span class="bold" class:channel-owner={comment.authorIsChannelOwner}
>{comment.author}</span
>
<span class="secondary-text">{comment.publishedText}</span>
</p>
</a>
{#if comment.isPinned}
<i>push_pin</i>
{/if}