From 04ba7b0d58d4a7cb996bef0fbc16496502b3300f Mon Sep 17 00:00:00 2001 From: RadoslavL <63926126+RadoslavL@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:22:51 +0300 Subject: [PATCH] Fix more issues related to tabs --- src/invidious/frontend/pagination.cr | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/invidious/frontend/pagination.cr b/src/invidious/frontend/pagination.cr index 40a9a62e..de77bd87 100644 --- a/src/invidious/frontend/pagination.cr +++ b/src/invidious/frontend/pagination.cr @@ -6,19 +6,19 @@ module Invidious::Frontend::Pagination private def first_page(str : String::Builder, locale : String?, url : String) str << %() - if locale_is_rtl?(locale) - # Inverted arrow ("first" points to the right) + if locale_is_rtl?(locale) + # Inverted arrow ("first" points to the right) str << translate(locale, "First page") str << "  " str << %() else - # Regular arrow ("first" points to the left) - str << %() + # Regular arrow ("first" points to the left) + str << %() str << "  " str << translate(locale, "First page") - end + end - str << "" + str << "" end private def previous_page(str : String::Builder, locale : String?, url : String) @@ -97,11 +97,11 @@ module Invidious::Frontend::Pagination str << %(
) - if !first_page.nil? - self.first_page(str, locale, base_url.to_s) - end + if !first_page.nil? + self.first_page(str, locale, base_url.to_s) + end - str << %(
\n) + str << %(\n) str << %(
)