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 @@
- {{ comment.author }} +
+ {{ comment.author }}
+
{{ $t("Comments.View") }}
{{ $t("Comments.Hide") }}
@@ -128,22 +156,32 @@
>
-
+
+
{{ $t("Comments.Show More Replies") }}
@@ -194,7 +236,11 @@
-
diff --git a/src/renderer/components/watch-video-live-chat/watch-video-live-chat.js b/src/renderer/components/watch-video-live-chat/watch-video-live-chat.js
index 7172b4508d057..aef8590a68d1f 100644
--- a/src/renderer/components/watch-video-live-chat/watch-video-live-chat.js
+++ b/src/renderer/components/watch-video-live-chat/watch-video-live-chat.js
@@ -250,11 +250,6 @@ export default Vue.extend({
})
this.stayAtBottom = true
this.showScrollToBottom = false
- },
-
- preventDefault: function (event) {
- event.stopPropagation()
- event.preventDefault()
}
}
})
diff --git a/src/renderer/components/watch-video-live-chat/watch-video-live-chat.vue b/src/renderer/components/watch-video-live-chat/watch-video-live-chat.vue
index 8c97f537caac0..67c915b90f02e 100644
--- a/src/renderer/components/watch-video-live-chat/watch-video-live-chat.vue
+++ b/src/renderer/components/watch-video-live-chat/watch-video-live-chat.vue
@@ -49,13 +49,20 @@
preventDefault(e)"
+ @click.stop.prevent
>
@@ -186,7 +200,12 @@
{{ $t("Search Filters.Fetch more results") }}
diff --git a/src/renderer/views/Watch/Watch.vue b/src/renderer/views/Watch/Watch.vue
index 3b166caf33249..8b4d5c384aeb4 100644
--- a/src/renderer/views/Watch/Watch.vue
+++ b/src/renderer/views/Watch/Watch.vue
@@ -44,6 +44,7 @@
Date: Thu, 22 Dec 2022 11:04:34 -0500
Subject: [PATCH 2/2] fix title issue, remove unused gotochannel function
---
.../components/watch-video-comments/watch-video-comments.js | 4 ----
.../components/watch-video-info/watch-video-info.sass | 1 -
2 files changed, 5 deletions(-)
diff --git a/src/renderer/components/watch-video-comments/watch-video-comments.js b/src/renderer/components/watch-video-comments/watch-video-comments.js
index da51a0dc8a330..61259d30673fd 100644
--- a/src/renderer/components/watch-video-comments/watch-video-comments.js
+++ b/src/renderer/components/watch-video-comments/watch-video-comments.js
@@ -334,10 +334,6 @@ export default Vue.extend({
})
},
- goToChannel: function (channelId) {
- this.$router.push({ path: `/channel/${channelId}` })
- },
-
...mapActions([
'invidiousAPICall'
])
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 2d58f80ee946a..9e8c109698a51 100644
--- a/src/renderer/components/watch-video-info/watch-video-info.sass
+++ b/src/renderer/components/watch-video-info/watch-video-info.sass
@@ -12,7 +12,6 @@
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
- {{ reply.author }} +
+ {{ reply.author }}
+
- View {{ reply.numReplies }} replies
+ {{ $t('Comments.View {replyCount} replies', { replyCount: reply.numReplies }) }}
{{ $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 @@{{ title }} -
+