fix(faith): no-Latin prayers always render in monolingual style
CI / update (push) Successful in 1m2s

Force showLatin=false in Prayer wrapper when hasLatin is false so spacing
and red rubric icons stay correct regardless of toggle state. Also hide
the Latin toggle on individual non-bilingual prayer routes.
This commit is contained in:
2026-05-07 07:38:57 +02:00
parent 109ac8e13a
commit 9a97e41c28
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "homepage",
"version": "1.67.2",
"version": "1.67.3",
"private": true,
"type": "module",
"scripts": {
@@ -16,7 +16,7 @@
langStore = null;
}
let showLatin = $derived(showLatinStore ? $showLatinStore : true);
let showLatin = $derived(hasLatin === false ? false : (showLatinStore ? $showLatinStore : true));
let urlLang = $derived(langStore ? $langStore : 'de');
</script>
@@ -202,7 +202,7 @@ h1 {
<h1>{prayerName}</h1>
{#if !isLatin}
{#if !isLatin && isBilingue}
<div class="toggle-controls">
<LanguageToggle
initialLatin={data.initialLatin}
@@ -243,7 +243,7 @@ h1 {
<div class="container">
<h1>{prayerName}</h1>
{#if !isLatin}
{#if !isLatin && isBilingue}
<div class="toggle-controls">
<LanguageToggle
initialLatin={data.initialLatin}