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",
|
"name": "homepage",
|
||||||
"version": "1.67.2",
|
"version": "1.67.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
langStore = null;
|
langStore = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
let showLatin = $derived(showLatinStore ? $showLatinStore : true);
|
let showLatin = $derived(hasLatin === false ? false : (showLatinStore ? $showLatinStore : true));
|
||||||
let urlLang = $derived(langStore ? $langStore : 'de');
|
let urlLang = $derived(langStore ? $langStore : 'de');
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ h1 {
|
|||||||
|
|
||||||
<h1>{prayerName}</h1>
|
<h1>{prayerName}</h1>
|
||||||
|
|
||||||
{#if !isLatin}
|
{#if !isLatin && isBilingue}
|
||||||
<div class="toggle-controls">
|
<div class="toggle-controls">
|
||||||
<LanguageToggle
|
<LanguageToggle
|
||||||
initialLatin={data.initialLatin}
|
initialLatin={data.initialLatin}
|
||||||
@@ -243,7 +243,7 @@ h1 {
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>{prayerName}</h1>
|
<h1>{prayerName}</h1>
|
||||||
|
|
||||||
{#if !isLatin}
|
{#if !isLatin && isBilingue}
|
||||||
<div class="toggle-controls">
|
<div class="toggle-controls">
|
||||||
<LanguageToggle
|
<LanguageToggle
|
||||||
initialLatin={data.initialLatin}
|
initialLatin={data.initialLatin}
|
||||||
|
|||||||
Reference in New Issue
Block a user