autocomplete: limit width of autocomplete menu.

Limit the width of the autocomplete menu to 480px. This is so that
stupidly long isekai titles don't blow out the size of the menu when
searching for common words.

For example, when searching for "look", one of the results is:

   no_matter_how_you_look_at_it_it's_your_fault_that_i'm_not_popular! -> watashi_ga_motenai_no_wa_dou_kangaetemo_omaera_ga_warui!
This commit is contained in:
evazion
2022-09-02 00:18:10 -05:00
parent 350009fd15
commit 3d831f7e1c
2 changed files with 8 additions and 1 deletions

View File

@@ -13,7 +13,7 @@
<% end %>
<% if result.post_count %>
<%= tag.span humanized_number(result.post_count), class: "post-count", style: "float: right;" %>
<%= tag.span humanized_number(result.post_count), class: "post-count" %>
<% end %>
</div>
<% end %>