[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
No known key found for this signature in database
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);
width: max-content;
}
.note-actions-extra-details[open] > summary + * > li:not(:last-of-type) {
margin-bottom: var(--s);
.note-actions-extra-details[open] > summary + * > li {
line-height: 2;
}
.note-actions-extra-details hr {
margin: 8px !important;
}
.note-actions-set {
opacity: 1 !important;

View File

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