From 62e94be2332f2c84d28a4190309d11a5451c817d Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 22 Aug 2018 15:30:18 +0200 Subject: [PATCH] Stretch SideBar to max height (useful in explorer) (#250) Stretch SideBar to max height, relative i18next paths --- packages/apps/src/index.css | 4 ++-- packages/ui-app/src/i18n.ts | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/apps/src/index.css b/packages/apps/src/index.css index a234a613ac..095982d77c 100644 --- a/packages/apps/src/index.css +++ b/packages/apps/src/index.css @@ -3,16 +3,16 @@ /* of the ISC license. See the LICENSE file for details. */ .apps--App { + align-items: stretch; box-sizing: border-box; display: flex; - height: 100%; + min-height: 100vh; } .apps--App .apps--Content, .apps--App .apps--SideBar, { display: flex; flex-direction: column; - height: 100%; flex-grow: 1; overflow-y: auto; } diff --git a/packages/ui-app/src/i18n.ts b/packages/ui-app/src/i18n.ts index 8ead9f63e5..91e806b72c 100644 --- a/packages/ui-app/src/i18n.ts +++ b/packages/ui-app/src/i18n.ts @@ -12,13 +12,16 @@ i18n .use(LanguageDetector) .use(reactI18nextModule) .init({ - fallbackLng: 'en', - ns: ['ui'], - defaultNS: 'ui', + backend: { + loadPath: 'locales/{{lng}}/{{ns}}.json' + }, debug: false, + defaultNS: 'ui', + fallbackLng: 'en', interpolation: { escapeValue: false }, + ns: ['ui'], react: { wait: true }