From accd5cf48cd2fc8fcc2b5bbff2ec1e8b848f7a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Sun, 2 Aug 2026 02:47:31 +0300 Subject: [PATCH] reduce spacing across all views; i18n for cache info text --- src/core/i18n.ts | 4 ++++ src/ui/calendar-view.ts | 12 ++++++------ src/ui/menaion-view.ts | 8 ++++---- src/ui/prayer-view.ts | 10 +++++----- src/ui/service-view.ts | 10 +++++----- src/ui/settings-view.ts | 10 ++++++++-- 6 files changed, 32 insertions(+), 22 deletions(-) diff --git a/src/core/i18n.ts b/src/core/i18n.ts index b138228..3e91fe9 100644 --- a/src/core/i18n.ts +++ b/src/core/i18n.ts @@ -499,6 +499,7 @@ export interface Translations { offlineDone: string; offlineSelectLang: string; offlineCleared: string; + offlineCacheInfo: string; locationTitle: string; latitude: string; longitude: string; @@ -1044,6 +1045,7 @@ const translations: Record = { offlineDone: 'Done! Data cached for offline use.', offlineSelectLang: 'Please select at least one language.', offlineCleared: 'Cache cleared.', + offlineCacheInfo: 'Cache: {0} / {1} ({2} files)', locationTitle: 'Location', latitude: 'Latitude', longitude: 'Longitude', @@ -1587,6 +1589,7 @@ const translations: Record = { offlineDone: 'Готово! Данные закэшированы для офлайн-использования.', offlineSelectLang: 'Пожалуйста, выберите хотя бы один язык.', offlineCleared: 'Кэш очищен.', + offlineCacheInfo: 'Кэш: {0} / {1} ({2} файлов)', locationTitle: 'Местоположение', latitude: 'Широта', longitude: 'Долгота', @@ -2130,6 +2133,7 @@ const translations: Record = { offlineDone: 'Готово! Данныя закешированы для офлайн-потребленїя.', offlineSelectLang: 'Пожалуйста, изберите хотя бы единъ языкъ.', offlineCleared: 'Кешъ очищенъ.', + offlineCacheInfo: 'Кешъ: {0} / {1} ({2} фа́йлѡвъ)', locationTitle: 'Мѣстоположе́нїе', latitude: 'Широта̀', longitude: 'Долгота̀', diff --git a/src/ui/calendar-view.ts b/src/ui/calendar-view.ts index cdd0b90..9992599 100644 --- a/src/ui/calendar-view.ts +++ b/src/ui/calendar-view.ts @@ -581,28 +581,28 @@ export class CalendarView { ${this.t.calendar.gregorianDate[0].toLowerCase() + this.t.calendar.gregorianDate.slice(1)}: ${gregorianStr} -
+
-
+
${this.t.loading}
-
+

${this.t.calendar.commemorations}

${this.t.loading}

-
+

${this.t.calendar.fastingRule}

${this.t.loading}

-
+

${this.t.calendar.readings}

${this.t.loading}

-
+
diff --git a/src/ui/menaion-view.ts b/src/ui/menaion-view.ts index e87ba77..1260974 100644 --- a/src/ui/menaion-view.ts +++ b/src/ui/menaion-view.ts @@ -55,8 +55,8 @@ export class MenaionView { this.currentMonth = today.getMonth() + 1; this.container.innerHTML = ` -
-
+
+
${[ { id: 'prayer', view: 'prayer', label: this.t.nav.prayer }, { id: 'akathists', view: 'akathists', label: this.t.nav.akathists }, @@ -78,7 +78,7 @@ export class MenaionView { `).join('')}
-
+

${this.t.prayer.selectSection}

@@ -132,7 +132,7 @@ export class MenaionView { ${months[month - 1]}
-
+
${daysHtml}
`; diff --git a/src/ui/prayer-view.ts b/src/ui/prayer-view.ts index 130c478..35196db 100644 --- a/src/ui/prayer-view.ts +++ b/src/ui/prayer-view.ts @@ -213,8 +213,8 @@ export class PrayerView { ]; this.container.innerHTML = ` -
-
+
+
${subNavItems.map(item => `