blacklists: truncate display of long blacklist rules.

This commit is contained in:
evazion
2018-08-16 13:18:27 -05:00
parent 6ccf4ed9c0
commit d6eecb5466
2 changed files with 21 additions and 2 deletions

View File

@@ -70,6 +70,7 @@ Blacklist.update_sidebar = function() {
link.text(entry.tags);
link.attr("href", `/posts?tags=${encodeURIComponent(entry.tags)}`);
link.attr("title", entry.tags);
link.click(Blacklist.toggle_entry);
count.html(entry.hits);
count.addClass("count");

View File

@@ -3,13 +3,27 @@
#blacklist-box {
display: none;
a.blacklisted-active {
text-decoration: line-through;
#blacklist-list {
a {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: bottom;
}
a.blacklisted-active {
text-decoration: line-through;
}
}
&.sidebar-blacklist ul li {
list-style-type: disc;
list-style-position: inside;
a {
max-width: 75%;
}
}
&.inline-blacklist {
@@ -21,6 +35,10 @@
li {
display: inline;
margin-right: 1em;
a {
max-width: 25%;
}
}
}
}