From eb9d7dd172fc68f3d6500170e0ffc6e1f6416d66 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Sat, 8 Mar 2025 20:53:54 +0200 Subject: [PATCH] style/login: prevent the page content being rendered before the stylesheet is loaded --- src/public/stylesheets/theme-next/shell.css | 2 +- src/views/login.ejs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/public/stylesheets/theme-next/shell.css b/src/public/stylesheets/theme-next/shell.css index ea20a2b66..fa39a5dd4 100644 --- a/src/public/stylesheets/theme-next/shell.css +++ b/src/public/stylesheets/theme-next/shell.css @@ -91,7 +91,7 @@ body.background-effects.platform-win32.layout-vertical #vertical-main-container */ .login-page { - display: flex; + display: flex; /* Note: the login page contents is hidden before this property is applied */ height: 100%; flex-direction: column; justify-content: center; diff --git a/src/views/login.ejs b/src/views/login.ejs index cc80a129f..a2cc935c2 100644 --- a/src/views/login.ejs +++ b/src/views/login.ejs @@ -6,6 +6,12 @@ <%= t("login.title") %> + <% // TriliumNextTODO: move the css file to ${assetPath}/stylesheets/ %>