From e4a8a6edc870b00ef431b2a228d567e35ccf7b50 Mon Sep 17 00:00:00 2001 From: ChunkyPtogrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Tue, 20 Dec 2022 20:11:50 -0500 Subject: [PATCH 1/2] Improve Watch page accessibility Co-Authored-By: Jason <84899178+jasonhenriquez@users.noreply.github.com> --- .../components/playlist-info/playlist-info.js | 13 ---- .../playlist-info/playlist-info.vue | 15 +++- .../watch-video-comments.vue | 72 +++++++++++++++---- .../watch-video-info/watch-video-info.sass | 6 ++ .../watch-video-info/watch-video-info.vue | 4 +- .../watch-video-live-chat.js | 5 -- .../watch-video-live-chat.vue | 23 +++++- .../watch-video-playlist.vue | 20 ++++++ src/renderer/views/Search/Search.css | 4 ++ src/renderer/views/Search/Search.vue | 4 ++ src/renderer/views/Watch/Watch.vue | 1 + static/locales/en-US.yaml | 4 ++ 12 files changed, 133 insertions(+), 38 deletions(-) diff --git a/src/renderer/components/playlist-info/playlist-info.js b/src/renderer/components/playlist-info/playlist-info.js index a8b448ac0ec08..a29d96b8ec111 100644 --- a/src/renderer/components/playlist-info/playlist-info.js +++ b/src/renderer/components/playlist-info/playlist-info.js @@ -122,19 +122,6 @@ export default Vue.extend({ openExternalLink(invidiousUrl) break } - }, - - playFirstVideo() { - const playlistInfo = { - playlistId: this.id - } - - this.$router.push( - { - path: `/watch/${this.firstVideoId}`, - query: playlistInfo - } - ) } } }) diff --git a/src/renderer/components/playlist-info/playlist-info.vue b/src/renderer/components/playlist-info/playlist-info.vue index fbe4d0fda9b4f..dfb3e98469653 100644 --- a/src/renderer/components/playlist-info/playlist-info.vue +++ b/src/renderer/components/playlist-info/playlist-info.vue @@ -3,10 +3,18 @@
- + +
@@ -36,6 +44,7 @@

{{ $t("Comments.Click to View Comments") }}

{{ $t("Comments.Click to View Comments") }}

@@ -29,7 +37,11 @@ {{ $t("Comments.Comments") }} {{ $t("Comments.Hide Comments") }} @@ -39,14 +51,20 @@ >
- + +

- {{ comment.author }} + + {{ comment.author }} + {{ $t("Comments.View") }} {{ $t("Comments.Hide") }} @@ -128,22 +156,32 @@ >

- + +

- {{ reply.author }} + + {{ reply.author }} + - View {{ reply.numReplies }} replies + {{ $t('Comments.View {replyCount} replies', { replyCount: reply.numReplies }) }}

{{ $t("Comments.Show More Replies") }}
@@ -194,7 +236,11 @@

{{ $t("Comments.Load More Comments") }}

diff --git a/src/renderer/components/watch-video-info/watch-video-info.sass b/src/renderer/components/watch-video-info/watch-video-info.sass index 3000104b495b9..2d58f80ee946a 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.sass +++ b/src/renderer/components/watch-video-info/watch-video-info.sass @@ -11,6 +11,12 @@ font-size: 22px margin: 0 0 24px word-break: break-word + display: block + margin-block-start: 1em + margin-block-end: 1em + margin-inline-start: 0px + margin-inline-end: 0px + font-weight: normal .channelInformation .profileRow diff --git a/src/renderer/components/watch-video-info/watch-video-info.vue b/src/renderer/components/watch-video-info/watch-video-info.vue index 9c9337d2d7e68..b0872c6a3cf70 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.vue +++ b/src/renderer/components/watch-video-info/watch-video-info.vue @@ -1,11 +1,11 @@