mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
fix(features): fix translations being split at wrong place
This commit is contained in:
parent
80492b32fe
commit
3cdf4384ab
1 changed files with 3 additions and 2 deletions
|
@ -112,7 +112,8 @@ const descriptions = Object.values(features.featureTabs).map(tab => tab.descript
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Mobile description -->
|
<!-- Mobile description -->
|
||||||
<div class="feature-description mt-4 lg:hidden" data-descriptions={descriptions}></div>
|
<div class="feature-description mt-4 lg:hidden" data-descriptions={descriptions.join('|||')}>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="sticky top-6 h-fit w-full lg:w-3/5">
|
<div class="sticky top-6 h-fit w-full lg:w-3/5">
|
||||||
|
@ -165,7 +166,7 @@ const descriptions = Object.values(features.featureTabs).map(tab => tab.descript
|
||||||
|
|
||||||
// Set initial description
|
// Set initial description
|
||||||
const descriptionEl = document.querySelector('.feature-description') as HTMLDivElement
|
const descriptionEl = document.querySelector('.feature-description') as HTMLDivElement
|
||||||
const descriptions = descriptionEl?.dataset.descriptions?.split(',')
|
const descriptions = descriptionEl?.dataset.descriptions?.split('|||')
|
||||||
if (descriptionEl && descriptions) {
|
if (descriptionEl && descriptions) {
|
||||||
descriptionEl.textContent = descriptions[0]
|
descriptionEl.textContent = descriptions[0]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue