From addcd7e012ce0feee48768a47b8f537bf6587648 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 12 Dec 2024 10:38:13 +0700 Subject: [PATCH] Chapter audio only hides bottom bar if scripture text is shown This fixes an issue where "hide text" projects couldn't navigate questions on mobile, since the bottom bar is now being hidden. So now, we don't hide the bottom bar if "hide text" is enabled. We will instead only hide the bar if the "hide text" is disabled and the chapter audio is shown. Effectively, this is when "the user opens the chapter audio." The second case where we hide the bar remains. I did a slight refactoring to make all this clear and readable. The original reason for the hiding behavior is still intact, that being to free up space on mobile and keep users focused on their intended task. --- .../checking/checking/checking.component.html | 2 +- .../checking/checking/checking.component.ts | 20 +++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking/checking.component.html b/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking/checking.component.html index 8e9f118cc4..7250f2bac2 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking/checking.component.html +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking/checking.component.html @@ -199,7 +199,7 @@

{{ t("filter_questions") }}

@if (projectDoc && totalVisibleQuestions() > 0) { -
+
@if (!isQuestionListPermanent) {