style/login: prevent the page content being rendered before the stylesheet is loaded

This commit is contained in:
Adorian Doran 2025-03-08 20:53:54 +02:00
parent 7434fb372e
commit eb9d7dd172
2 changed files with 7 additions and 1 deletions

View File

@ -91,7 +91,7 @@ body.background-effects.platform-win32.layout-vertical #vertical-main-container
*/ */
.login-page { .login-page {
display: flex; display: flex; /* Note: the login page contents is hidden before this property is applied */
height: 100%; height: 100%;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;

View File

@ -6,6 +6,12 @@
<title><%= t("login.title") %></title> <title><%= t("login.title") %></title>
<link rel="apple-touch-icon" sizes="180x180" href="<%= assetPath %>/images/app-icons/ios/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="<%= assetPath %>/images/app-icons/ios/apple-touch-icon.png">
<link rel="shortcut icon" href="favicon.ico"> <link rel="shortcut icon" href="favicon.ico">
<style>
.login-page {
/* Prevent the content from being rendered before the main stylesheet loads */
display: none;
}
</style>
<% // TriliumNextTODO: move the css file to ${assetPath}/stylesheets/ %> <% // TriliumNextTODO: move the css file to ${assetPath}/stylesheets/ %>
<link rel="stylesheet" href="<%= appPath %>/login.css"> <link rel="stylesheet" href="<%= appPath %>/login.css">
<link rel="stylesheet" href="<%= assetPath %>/stylesheets/theme-light.css"> <link rel="stylesheet" href="<%= assetPath %>/stylesheets/theme-light.css">