mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Add icon to tags on notes.
This commit is contained in:
@@ -221,9 +221,16 @@ div[contenteditable="true"] {
|
||||
|
||||
.slim-tag {
|
||||
display: inline-block;
|
||||
padding: 3px 5px;
|
||||
padding: 0px 6px 0 24px;
|
||||
background-color: rgba(0,0,0,0.08);
|
||||
border-radius: 12px;
|
||||
background-position: 8px center;
|
||||
opacity: 0.7;
|
||||
border-radius: 10px;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
.note-tags {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* Restore defaults select2 rules */
|
||||
|
||||
@@ -675,7 +675,7 @@ View.prototype = {
|
||||
modalTags.html('');
|
||||
newTags.forEach(function (item, index) {
|
||||
var noteId = parseInt(item.id) || -1;
|
||||
var tag = $('<div class="slim-tag" tag-id="' + noteId + '">' + item.text + '</div>');
|
||||
var tag = $('<div class="icon-tag slim-tag" tag-id="' + noteId + '">' + item.text + '</div>');
|
||||
modalTags.append(tag);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
</div>
|
||||
<div class='note-tags'>
|
||||
{{#each tags}}
|
||||
<div class="slim-tag" tag-id="{{ id }}">{{{ name }}}</div>
|
||||
<div class="icon-tag slim-tag" tag-id="{{ id }}">{{{ name }}}</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
<div class='note-tags'>
|
||||
{{#each tags}}
|
||||
<div class='slim-tag' tag-id="{{ id }}">
|
||||
<div class='icon-tag slim-tag' tag-id="{{ id }}">
|
||||
{{{ name }}}
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
Reference in New Issue
Block a user