Style tweaks to bar placeholder

This commit is contained in:
Andy Smith
2025-08-25 11:06:53 -05:00
parent d6cad77d96
commit 6a90832a1d
3 changed files with 12 additions and 6 deletions
+8 -2
View File
@@ -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));
}
}
}
}
+1 -1
View File
@@ -11,7 +11,7 @@ module HotkeysHelper
else
key
end
}.join("+")
}.join()
else
hotkey.split(",").first if hotkey
end
+3 -3
View File
@@ -6,7 +6,7 @@
bar_search_url_value: search_path,
bar_ask_url_value: conversation_path
} do %>
<div class="flex justify-center gap bar__placeholder" data-bar-target="buttonsContainer">
<div class="flex justify-center bar__placeholder" data-bar-target="buttonsContainer">
<%= 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 %>
<span>Search [<%= hotkey_label(["ctrl", "K"]) %>]</span>
<span>Search (<%= hotkey_label(["ctrl", "K"]) %>)</span>
<% end %>
<span>or</span>
<%= tag.button \
@@ -24,7 +24,7 @@
action: "
bar#ask
keydown.meta+a@document->hotkey#click keydown.ctrl+a@document->hotkey#click" } do %>
<span>Ask [<%= hotkey_label(["ctrl", "A"]) %>]</span>
<span>Ask (<%= hotkey_label(["ctrl", "A"]) %>)</span>
<% end %>
</div>