Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
icons for render & toggle edit since text titles caused unwanted horizontal scrolling in smaller window sizes
azivnerc8c533844ec8
diff --git a/src/public/images/icons/edit.png b/src/public/images/icons/edit.pngnew file mode 100644index 0000000000..87deb59777Binary files /dev/null and b/src/public/images/icons/edit.png differdiff --git a/src/public/images/icons/play-20.png b/src/public/images/icons/play-20.pngnew file mode 100644index 0000000000..b9f9b67206Binary files /dev/null and b/src/public/images/icons/play-20.png differdiff --git a/src/views/index.ejs b/src/views/index.ejsindex 17222a4662..3a68901496 100644--- a/src/views/index.ejs+++ b/src/views/index.ejs@@ -115,14 +115,38 @@<span id="note-id-display" title="Note ID"></span>- <div>- <span style="font-size: smaller">Protected:</span>+ <button class="btn btn-sm"+ style="display: none; margin-right: 10px; padding: 4px;"+ title="Toggle edit"+ id="toggle-edit-button">+ <img src="/images/icons/edit.png" alt="Toggle edit"/>+ </button>- <div class="btn-group btn-group-xs">- <button type="button" class="btn" id="protect-button" title="Protected note can be viewed and edited only after entering password">+ <button class="btn btn-sm"+ style="display: none; margin-right: 10px; padding: 4px;"+ title="Render (Ctrl+Enter)"+ id="render-button">+ <img src="/images/icons/play-20.png" alt="Render"/>+ </button>++ <button class="btn btn-sm"+ style="display: none; margin-right: 10px"+ id="execute-script-button">Execute <kbd>Ctrl+Enter</kbd></button>++ <div>+ <div class="btn-group btn-group-sm">+ <button type="button"+ class="btn"+ id="protect-button"+ title="Protected note can be viewed and edited only after entering password"+ style="padding: 4px;"><img src="/images/icons/shield.png"/></button>- <button type="button" class="btn" id="unprotect-button" title="Not protected note can be viewed without entering password">+ <button type="button"+ class="btn"+ id="unprotect-button"+ title="Not protected note can be viewed without entering password"+ style="padding: 4px;"><img src="/images/icons/shield-off.png"/></button></div>@@ -130,18 +154,6 @@ - <button class="btn btn-sm"- style="display: none; margin-right: 10px"- id="toggle-edit-button">Toggle edit</button>-- <button class="btn btn-sm"- style="display: none; margin-right: 10px"- id="render-button">Render <kbd>Ctrl+Enter</kbd></button>-- <button class="btn btn-sm"- style="display: none; margin-right: 10px"- id="execute-script-button">Execute <kbd>Ctrl+Enter</kbd></button>-<div class="dropdown" id="note-type" data-bind="visible: type() != 'search'"><button data-bind="disable: isDisabled()" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-sm">Type: <span data-bind="text: typeString()"></span>