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.text(entry.tags);
link.attr("href", `/posts?tags=${encodeURIComponent(entry.tags)}`); link.attr("href", `/posts?tags=${encodeURIComponent(entry.tags)}`);
link.attr("title", entry.tags);
link.click(Blacklist.toggle_entry); link.click(Blacklist.toggle_entry);
count.html(entry.hits); count.html(entry.hits);
count.addClass("count"); count.addClass("count");

View File

@@ -3,13 +3,27 @@
#blacklist-box { #blacklist-box {
display: none; display: none;
a.blacklisted-active { #blacklist-list {
text-decoration: line-through; 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 { &.sidebar-blacklist ul li {
list-style-type: disc; list-style-type: disc;
list-style-position: inside; list-style-position: inside;
a {
max-width: 75%;
}
} }
&.inline-blacklist { &.inline-blacklist {
@@ -21,6 +35,10 @@
li { li {
display: inline; display: inline;
margin-right: 1em; margin-right: 1em;
a {
max-width: 25%;
}
} }
} }
} }