tag folding
parent
5e3ea221a8
commit
9a2f0131c6
|
@ -7,6 +7,28 @@
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
details.tags {
|
||||||
|
color: lighten($dark-text-color, 20%);
|
||||||
|
font-size: 12px;
|
||||||
|
text-align: right;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: darken($secondary-text-color, 20%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.composer--reply > .content {
|
||||||
|
p.signature {
|
||||||
|
color: $dark-text-color;
|
||||||
|
}
|
||||||
|
details.tags {
|
||||||
|
color: $dark-text-color;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: darken($secondary-text-color, 50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div.media-caption {
|
div.media-caption {
|
||||||
|
|
|
@ -219,6 +219,11 @@ class Formatter
|
||||||
html = "#{html.strip}<p class=\"signature\">— #{footer}</p>"
|
html = "#{html.strip}<p class=\"signature\">— #{footer}</p>"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
unless status.tags.blank?
|
||||||
|
tags = encode_and_link_urls(status.tags.pluck(:name).sort.map{ |t| "##{t}" }.join(' '))
|
||||||
|
html = "#{html}<details class=\"tags\"><summary>\xf0\x9f\x8f\xb7</summary><p class=\"tags\">#{tags}</p></details>"
|
||||||
|
end
|
||||||
|
|
||||||
html.html_safe # rubocop:disable Rails/OutputSafety
|
html.html_safe # rubocop:disable Rails/OutputSafety
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue