Improved tag rendering
This commit is contained in:
parent
ed82c71220
commit
4a6f54ec52
@ -23,7 +23,7 @@ component InputTags(id string, value []string, label string, tooltip string)
|
||||
label(for=id)= label + ":"
|
||||
.tags(id=id)
|
||||
for index, tag := range value
|
||||
.tag
|
||||
.tag.tag-edit
|
||||
span.tag-title.action(contenteditable="true", data-trigger="focusout", data-action="save", data-field=id + "[" + strconv.Itoa(index) + "]")= tag
|
||||
button.tag-remove.action(data-action="arrayRemove", data-trigger="click", data-field=id, data-index=index)
|
||||
RawIcon("trash")
|
||||
|
@ -24,9 +24,9 @@ component Track(track *arn.SoundTrack)
|
||||
|
||||
.widget.mountable
|
||||
h3.widget-title Tags
|
||||
ul
|
||||
.tags
|
||||
each tag in track.Tags
|
||||
li= tag
|
||||
.tag= tag
|
||||
|
||||
.footer.text-center.mountable
|
||||
if track.EditedBy != ""
|
||||
|
@ -10,6 +10,8 @@ mixin tag-dimensions
|
||||
ui-element
|
||||
tag-dimensions
|
||||
margin-right 0
|
||||
|
||||
.tag-edit
|
||||
border-right none
|
||||
border-top-right-radius 0
|
||||
border-bottom-right-radius 0
|
||||
|
Loading…
Reference in New Issue
Block a user