From a1469854e8ed280ac0492f3bb2c7055317343997 Mon Sep 17 00:00:00 2001 From: azivner Date: Sun, 9 Dec 2018 13:37:28 +0100 Subject: [PATCH] Allow Trilium to work from non-root document paths, closes #253 --- src/public/stylesheets/style.css | 2 +- src/views/index.ejs | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 37f5737be..cfe26ce62 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -107,7 +107,7 @@ body { (it kept growing with content) */ #container:not(.distraction-free-mode) #note-detail-wrapper.protected { /* DON'T COLLAPSE THE RULES INTO SINGLE ONE, BACKGROUND WON'T DISPLAY */ - background: url('/images/shield.svg') no-repeat; + background: url('../images/shield.svg') no-repeat; background-size: contain; background-position: center; } diff --git a/src/views/index.ejs b/src/views/index.ejs index f614aea27..9babd4a20 100644 --- a/src/views/index.ejs +++ b/src/views/index.ejs @@ -201,7 +201,7 @@ <% include dialogs/confirm.ejs %> - + - + - - + + - + - - + + - - + + - + - + - + - + - +