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> </div>
</td> </td>
<td class="button-column"> <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> <span class="bx bx-x icon-action action-conf-del"></span>
</td> </td>
</tr>`; </tr>`;

View File

@ -23,6 +23,18 @@ const TPL = `
</div> </div>
</td> </td>
<td class="button-column"> <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> <span class="bx bx-x icon-action action-conf-del"></span>
</td> </td>
</tr>`; </tr>`;

View File

@ -8,6 +8,13 @@ const TPL = `
Fast search Fast search
</td> </td>
<td class="button-column"> <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> <span class="bx bx-x icon-action search-option-del"></span>
</td> </td>
</tr>`; </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> <p>Note that search script and search string can't be combined with each other.</p>
</div> </div>
</div>
<span class="bx bx-x icon-action search-option-del"></span> <span class="bx bx-x icon-action search-option-del"></span>
</td> </td>

View File

@ -26,6 +26,7 @@ const TPL = `
</ul> </ul>
</p> </p>
</div> </div>
</div>
<span class="bx bx-x icon-action search-option-del"></span> <span class="bx bx-x icon-action search-option-del"></span>
</td> </td>

View File

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