put show source button back to note actions since it's pretty rare

This commit is contained in:
zadam 2021-05-29 20:54:11 +02:00
parent 65c3bcb565
commit 60f88574b0
3 changed files with 5 additions and 1 deletions

View file

@ -123,7 +123,6 @@ export default class DesktopLayout {
.title("Note Revisions") .title("Note Revisions")
.command("showNoteRevisions") .command("showNoteRevisions")
.titlePlacement("bottom")) .titlePlacement("bottom"))
.button(new ShowNoteSourceButton())
.button(new NoteActionsWidget()) .button(new NoteActionsWidget())
) )
.child(new NoteUpdateStatusWidget()) .child(new NoteUpdateStatusWidget())

View file

@ -21,6 +21,7 @@ const TPL = `
<div class="dropdown-menu dropdown-menu-right"> <div class="dropdown-menu dropdown-menu-right">
<a data-trigger-command="renderActiveNote" class="dropdown-item render-note-button"><kbd data-command="renderActiveNote"></kbd> Re-render note</a> <a data-trigger-command="renderActiveNote" class="dropdown-item render-note-button"><kbd data-command="renderActiveNote"></kbd> Re-render note</a>
<a data-trigger-command="findInText" class="dropdown-item">Search in note <kbd data-command="findInText"></a> <a data-trigger-command="findInText" class="dropdown-item">Search in note <kbd data-command="findInText"></a>
<a data-trigger-command="showNoteSource" class="dropdown-item show-source-button"><kbd data-command="showNoteSource"></kbd> Note source</a>
<a data-trigger-command="openNoteExternally" class="dropdown-item open-note-externally-button"><kbd data-command="openNoteExternally"></kbd> Open note externally</a> <a data-trigger-command="openNoteExternally" class="dropdown-item open-note-externally-button"><kbd data-command="openNoteExternally"></kbd> Open note externally</a>
<a class="dropdown-item import-files-button">Import files</a> <a class="dropdown-item import-files-button">Import files</a>
<a class="dropdown-item export-note-button">Export note</a> <a class="dropdown-item export-note-button">Export note</a>

View file

@ -33,6 +33,10 @@ const TPL = `
.section-title.active { .section-title.active {
color: var(--main-text-color); color: var(--main-text-color);
border-bottom: 1px solid var(--main-text-color); border-bottom: 1px solid var(--main-text-color);
flex-shrink: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.section-title:hover { .section-title:hover {