[CARDS][Note] Add permalink to extra note actions

This commit is contained in:
Eliseu Amaro 2021-12-26 17:37:35 +00:00 committed by Diogo Peralta Cordeiro
parent a1d9909379
commit feb2631f00
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
2 changed files with 10 additions and 2 deletions

View File

@ -180,8 +180,12 @@ embed header {
box-shadow: var(--shadow); box-shadow: var(--shadow);
width: max-content; width: max-content;
} }
.note-actions-extra-details[open] > summary + * > li:not(:last-of-type) { .note-actions-extra-details[open] > summary + * > li {
margin-bottom: var(--s); line-height: 2;
}
.note-actions-extra-details hr {
margin: 8px !important;
} }
.note-actions-set { .note-actions-set {
opacity: 1 !important; opacity: 1 !important;

View File

@ -8,6 +8,10 @@
{{ icon('kebab', 'icon icon-note-actions-extra') | raw }} {# button-container #} {{ icon('kebab', 'icon icon-note-actions-extra') | raw }} {# button-container #}
</summary> </summary>
<ul> <ul>
<li>
<a href="{{ note.getUrl() }}">{{ 'Permalink' | trans }}</a>
</li>
<hr>
{% for current_action in get_extra_note_actions(note) %} {% for current_action in get_extra_note_actions(note) %}
<li> <li>
<a class="{{ current_action["classes"] }}" <a class="{{ current_action["classes"] }}"