fix(faith): no-Latin prayers always render in monolingual style
CI / update (push) Successful in 1m2s
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:
+1
-1
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user