adjust search box to give a hint on searching for videos

This commit is contained in:
edshot99 2025-01-31 00:19:59 -06:00
parent 94af5fe262
commit 512b5d97aa
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
<%= hidden_field_tag :random, params[:random] %>
<% end %>
<%= text_area_tag("tags", tags, placeholder: "Search posts by tag", rows: 1, data: { shortcut: "q", autocomplete: "tag-query" }) %>
<%= text_area_tag("tags", tags, placeholder: "Search posts by tag (title:\"video name\")", rows: 1, data: { shortcut: "q", autocomplete: "tag-query" }) %>
<%= tag.button(tag.i(class: "fa-solid fa-magnifying-glass"), type: "submit", title: "Search") %>
<% end %>
</section>

View File

@ -8,7 +8,7 @@
<br/>
<%= form_tag(posts_path, method: "get", class: "home-search") do %>
<%= text_field_tag("tags", "", autofocus: "autofocus", placeholder: "Search posts by tag (or with title:\"video name\")", data: { shortcut: "q", autocomplete: "tag-query" }) %>
<%= text_field_tag("tags", "", autofocus: "autofocus", placeholder: "Search posts by tag (title:\"video name\")", data: { shortcut: "q", autocomplete: "tag-query" }) %>
<%= tag.button(tag.i(class: "fa-solid fa-magnifying-glass"), type: "submit") %>
<% end %>