From fb5df33ee767702bd85ee5eb0694a486a63ff8a4 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 24 Feb 2019 11:36:01 +0100 Subject: [PATCH] new import options in the dialog, tooltips --- src/public/javascripts/desktop.js | 4 ++++ src/public/stylesheets/desktop.css | 4 ++++ src/public/stylesheets/style.css | 1 + src/views/dialogs/import.ejs | 26 ++++++++++++++++++++++---- 4 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/public/javascripts/desktop.js b/src/public/javascripts/desktop.js index 12df3f593e..8eee127b36 100644 --- a/src/public/javascripts/desktop.js +++ b/src/public/javascripts/desktop.js @@ -134,6 +134,10 @@ $("#export-note-button").click(function () { exportDialog.showDialog('single'); }); +$('[data-toggle="tooltip"]').tooltip({ + html: true +}); + macInit.init(); searchNotesService.init(); // should be in front of treeService since that one manipulates address bar hash diff --git a/src/public/stylesheets/desktop.css b/src/public/stylesheets/desktop.css index c51341606e..a16e8c9ee1 100644 --- a/src/public/stylesheets/desktop.css +++ b/src/public/stylesheets/desktop.css @@ -108,4 +108,8 @@ body { #note-info-table td, #note-info-table th { padding: 15px; +} + +[data-toggle="tooltip"] { + text-decoration: dotted underline; } \ No newline at end of file diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index d6705dd89a..580d579f21 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -679,6 +679,7 @@ table.promoted-attributes-in-tooltip td, table.promoted-attributes-in-tooltip th /* height needs to stay small because tooltip has problem when it can't fit to either top or bottom of the cursor */ max-height: 300px; overflow: hidden; + font-size: var(--main-font-size); color: var(--main-text-color); border: 1px solid var(--main-border-color); border-radius: 5px; diff --git a/src/views/dialogs/import.ejs b/src/views/dialogs/import.ejs index ca9e19c93d..c8476ab328 100644 --- a/src/views/dialogs/import.ejs +++ b/src/views/dialogs/import.ejs @@ -18,17 +18,35 @@ -

Content of the file will be imported as child note(s) into . Import file must be of supported type and have correct extension - one of .html, .md, .tar, .enex.

+

Content of the file will be imported as child note(s) into .

+ Options: + +
+ +
+ +
+ +
+
+
-
- Trilium .tar export files can contain executable scripts which may contain harmful behavior. Safe import will deactivate automatic execution of all imported scripts. Uncheck "Safe import" only if the imported tar archive is supposed to contain executable scripts and you completely trust the contents of the import file. +
+