From a3da03bee91eab5c602882c4b43b959362ee441d Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Thu, 23 Mar 2023 18:10:53 -0400 Subject: improve accessibility --- src/invidious/comments.cr | 6 +++--- src/invidious/mixes.cr | 2 +- src/invidious/playlists.cr | 2 +- src/invidious/views/components/channel_info.ecr | 4 ++-- src/invidious/views/components/item.ecr | 10 +++++----- src/invidious/views/feeds/history.ecr | 2 +- src/invidious/views/watch.ecr | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index b15d63d4..2d62580d 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -346,7 +346,7 @@ def template_youtube_comments(comments, locale, thin_mode, is_replies = false) html << <<-END_HTML
@@ -367,7 +367,7 @@ def template_youtube_comments(comments, locale, thin_mode, is_replies = false) html << <<-END_HTML
#{recode_length_seconds(video["lengthSeconds"].as_i)}
#{video["title"]}
diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index 57f1f53e..40bb244b 100644 --- a/src/invidious/playlists.cr +++ b/src/invidious/playlists.cr @@ -507,7 +507,7 @@ def template_playlist(playlist)#{recode_length_seconds(video["lengthSeconds"].as_i)}
#{video["title"]}
diff --git a/src/invidious/views/components/channel_info.ecr b/src/invidious/views/components/channel_info.ecr index f216359f..d94ecdad 100644 --- a/src/invidious/views/components/channel_info.ecr +++ b/src/invidious/views/components/channel_info.ecr @@ -1,6 +1,6 @@ <% if channel.banner %><%= HTML.escape(item.author) %><% if !item.author_verified.nil? && item.author_verified %> <% end %>
@@ -25,7 +25,7 @@ <% if !env.get("preferences").as(Preferences).thin_mode %><%= translate_count(locale, "generic_videos_count", item.video_count, NumberFormatting::Separator) %>
+
<% if item.length_seconds != 0 %>
<%= recode_length_seconds(item.length_seconds) %>
<% end %> @@ -58,7 +58,7 @@ <% if !env.get("preferences").as(Preferences).thin_mode %>
+
<% if plid_form = env.get?("remove_playlist_items") %>