blacklists: truncate display of long blacklist rules.
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
@@ -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%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user