mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 04:31:57 +08:00
Allow non-pinned tags to be colored
This commit is contained in:
parent
85d7dc8752
commit
ed2fb779e6
@ -96,7 +96,8 @@ export default class TagDiscussionModal extends FormModal {
|
||||
? m('li', {
|
||||
'data-index': tag.id(),
|
||||
className: classList({
|
||||
category: tag.position() !== null,
|
||||
pinned: tag.position() !== null,
|
||||
colored: !!tag.color(),
|
||||
selected: selected.indexOf(tag) !== -1,
|
||||
active: this.index() == tag
|
||||
}),
|
||||
|
@ -162,13 +162,15 @@
|
||||
text-overflow: ellipsis;
|
||||
cursor: pointer;
|
||||
|
||||
&.category {
|
||||
&.pinned {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
|
||||
& .name {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
&.colored {
|
||||
&.selected .tag-icon:before {
|
||||
color: #fff;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user