post tooltips: increase delay, constraint height, condense tags (#3666).
* Increase hover delay to 450ms. * Set max height and add scrollbars for long tag lists. * Condense tag list (don't put categories on separate lines).
This commit is contained in:
@@ -28,7 +28,7 @@ Danbooru.PostTooltip.QTIP_OPTIONS = {
|
|||||||
},
|
},
|
||||||
show: {
|
show: {
|
||||||
solo: true,
|
solo: true,
|
||||||
delay: 300,
|
delay: 450,
|
||||||
effect: false,
|
effect: false,
|
||||||
ready: true,
|
ready: true,
|
||||||
event: "mouseenter",
|
event: "mouseenter",
|
||||||
|
|||||||
@@ -1,10 +1,21 @@
|
|||||||
|
$tooltip-width: 965px;
|
||||||
|
$tooltip-height: 160px;
|
||||||
|
|
||||||
.post-tooltip {
|
.post-tooltip {
|
||||||
max-width: 660px;
|
max-width: $tooltip-width;
|
||||||
|
box-sizing: border-box;
|
||||||
|
line-height: 16px;
|
||||||
|
|
||||||
border-color: #767676;
|
border-color: #767676;
|
||||||
box-shadow: 1px 1px 2px #666;
|
box-shadow: 1px 1px 2px #666;
|
||||||
|
|
||||||
.qtip-content {
|
.qtip-content {
|
||||||
padding: 4px 6px;
|
padding: 4px 6px;
|
||||||
|
|
||||||
|
.post-tooltip-body {
|
||||||
|
max-height: $tooltip-height;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.post-tooltip-loading {
|
&.post-tooltip-loading {
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
<%= @post.presenter.split_inline_tag_list_html(self) %>
|
<div class="post-tooltip-body">
|
||||||
|
<%= @post.presenter.inline_tag_list_html(self) %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="post-tooltip-metatags">
|
<div class="post-tooltip-footer">
|
||||||
<%= link_to_search "user:#{@post.uploader_name}" if CurrentUser.is_moderator? %>
|
<%= link_to_search "user:#{@post.uploader_name}" if CurrentUser.is_moderator? %>
|
||||||
<%= link_to "toptagger:#{@post.keeper.name}", user_path(@post.keeper) %>
|
<%= link_to "toptagger:#{@post.keeper.name}", user_path(@post.keeper) %>
|
||||||
<%= link_to_search "rating:#{@post.pretty_rating.downcase}" %>
|
<%= link_to_search "rating:#{@post.pretty_rating.downcase}" %>
|
||||||
|
|||||||
Reference in New Issue
Block a user