diff --git a/app/assets/stylesheets/bar.css b/app/assets/stylesheets/bar.css index de71dbbb4..8370ef900 100644 --- a/app/assets/stylesheets/bar.css +++ b/app/assets/stylesheets/bar.css @@ -41,12 +41,18 @@ } .bar__placeholder { + color: var(--color-ink-medium); font-weight: 500; - opacity: 0.66; .btn--plain { - font-weight: 500; + color: inherit; + font-weight: inherit; + padding-inline: 1ch; white-space: nowrap; + + &:hover { + color: oklch(var(--lch-blue-dark)); + } } } } diff --git a/app/helpers/hotkeys_helper.rb b/app/helpers/hotkeys_helper.rb index a1894104c..7bd0424d1 100644 --- a/app/helpers/hotkeys_helper.rb +++ b/app/helpers/hotkeys_helper.rb @@ -11,7 +11,7 @@ module HotkeysHelper else key end - }.join("+") + }.join() else hotkey.split(",").first if hotkey end diff --git a/app/views/bar/_bar.html.erb b/app/views/bar/_bar.html.erb index 87c133be6..226f1645f 100644 --- a/app/views/bar/_bar.html.erb +++ b/app/views/bar/_bar.html.erb @@ -6,7 +6,7 @@ bar_search_url_value: search_path, bar_ask_url_value: conversation_path } do %> -
+
<%= tag.button \ class: "btn btn--plain", data: { @@ -14,7 +14,7 @@ action: " bar#search keydown.meta+k@document->hotkey#click keydown.ctrl+k@document->hotkey#click" } do %> - Search [<%= hotkey_label(["ctrl", "K"]) %>] + Search (<%= hotkey_label(["ctrl", "K"]) %>) <% end %> or <%= tag.button \ @@ -24,7 +24,7 @@ action: " bar#ask keydown.meta+a@document->hotkey#click keydown.ctrl+a@document->hotkey#click" } do %> - Ask [<%= hotkey_label(["ctrl", "A"]) %>] + Ask (<%= hotkey_label(["ctrl", "A"]) %>) <% end %>