small search help improvements

This commit is contained in:
zadam 2021-02-13 23:38:31 +01:00
parent 3cc93157bf
commit a78c8ddad7
6 changed files with 39 additions and 0 deletions

View file

@ -19,6 +19,20 @@ const TPL = `
</div>
</td>
<td class="button-column">
<div class="dropdown help-dropdown">
<span class="bx bx-help-circle icon-action" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></span>
<div class="dropdown-menu dropdown-menu-right p-4">
<p>On all matched notes:</p>
<ul>
<li>create given label if note doesn't have one yet</li>
<li>or change value of the existing label</li>
</ul>
<p>You can also call this method without value, in such case label will be assigned to the note without value.</p>
</div>
</div>
<span class="bx bx-x icon-action action-conf-del"></span>
</td>
</tr>`;

View file

@ -23,6 +23,18 @@ const TPL = `
</div>
</td>
<td class="button-column">
<div class="dropdown help-dropdown">
<span class="bx bx-help-circle icon-action" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></span>
<div class="dropdown-menu dropdown-menu-right p-4">
<p>On all matched notes:</p>
<ul>
<li>create given relation if note doesn't have one yet</li>
<li>or change target note of the existing relation</li>
</ul>
</div>
</div>
<span class="bx bx-x icon-action action-conf-del"></span>
</td>
</tr>`;

View file

@ -8,6 +8,13 @@ const TPL = `
Fast search
</td>
<td class="button-column">
<div class="dropdown help-dropdown">
<span class="bx bx-help-circle icon-action" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></span>
<div class="dropdown-menu dropdown-menu-right p-4">
Fast search option disables full text search of note contents which might speed up searching in large databases.
</div>
</div>
<span class="bx bx-x icon-action search-option-del"></span>
</td>
</tr>`;

View file

@ -33,6 +33,7 @@ return matchedNotes;</pre>
<p>Note that search script and search string can't be combined with each other.</p>
</div>
</div>
<span class="bx bx-x icon-action search-option-del"></span>
</td>

View file

@ -25,6 +25,7 @@ const TPL = `
<li><code>note.dateCreated >= MONTH-1</code> - notes created in the last month</li>
</ul>
</p>
</div>
</div>
<span class="bx bx-x icon-action search-option-del"></span>

View file

@ -919,6 +919,10 @@ ul.fancytree-container li {
color: var(--main-text-color);
}
.help-dropdown {
display: inline-block;
}
.help-dropdown .dropdown-menu {
border-radius: 10px;
border-width: 2px;