styling improvements
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
Danbooru.RelatedTag.initialize_all = function() {
|
||||
this.initialize_buttons();
|
||||
$("#related-tags").hide();
|
||||
}
|
||||
|
||||
Danbooru.RelatedTag.initialize_buttons = function() {
|
||||
@@ -55,6 +56,8 @@
|
||||
return;
|
||||
}
|
||||
|
||||
$("#related-tags").show();
|
||||
|
||||
var query = Danbooru.RelatedTag.recent_search.query;
|
||||
var related_tags = Danbooru.RelatedTag.recent_search.tags;
|
||||
var wiki_page_tags = Danbooru.RelatedTag.recent_search.wiki_page_tags;
|
||||
@@ -118,6 +121,7 @@
|
||||
}
|
||||
|
||||
Danbooru.RelatedTag.find_artist = function(e) {
|
||||
$("#related-tags").show();
|
||||
Danbooru.RelatedTag.recent_search = null;
|
||||
var url = $("#upload_source,#post_source");
|
||||
$.get("/artists.json", {"search[url_match]": url.val()}).success(Danbooru.RelatedTag.process_artist);
|
||||
@@ -132,7 +136,7 @@
|
||||
$dest.html("No artists found");
|
||||
return;
|
||||
} else if (data.length > 2) {
|
||||
$dest.html("Too many matches found");
|
||||
$dest.html("Too many matching artists found");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,17 +4,25 @@ div#related-tags {
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
margin-bottom: 1em;
|
||||
padding: 1em;
|
||||
background: #EEE;
|
||||
|
||||
div.artist {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
div.artist:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
div.tag-column {
|
||||
max-width: 15em;
|
||||
margin-right: 2em;
|
||||
float: left;
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
|
||||
li {
|
||||
padding: 0.25em 0.5em;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user