Simply search placeholder, shortcut, and shortcut indicator

This commit is contained in:
Jason Zimdars
2025-10-01 10:52:54 -05:00
parent e68de532d7
commit 038be0b9ff
4 changed files with 9 additions and 10 deletions
+4 -2
View File
@@ -50,13 +50,15 @@
}
.bar__placeholder {
color: var(--color-ink-medium);
font-weight: 500;
opacity: 0.66;
.btn--plain {
color: inherit;
font-weight: inherit;
font-size: var(--text-x-small);
font-weight: 600;
padding-inline: 1ch;
text-transform: uppercase;
white-space: nowrap;
&:hover {
+1
View File
@@ -71,6 +71,7 @@
opacity: 0.7;
padding: 0 0.4em;
text-transform: uppercase;
vertical-align: middle;
white-space: nowrap;
}
-4
View File
@@ -87,10 +87,6 @@
display: none;
}
.tray__toggle-text kbd {
vertical-align: text-bottom;
}
@media (max-width: 799px) {
/* When collapsed on mobile, make it small */
.tray__dialog:not([open]) ~ & {
+4 -4
View File
@@ -13,8 +13,8 @@
controller: "hotkey",
action: "
bar#search
keydown.meta+k@document->hotkey#click keydown.ctrl+k@document->hotkey#click" } do %>
<span>Search (<%= hotkey_label(["ctrl", "K"]) %>)</span>
keydown.k@document->hotkey#click" } do %>
<span>Search <% if platform.desktop? -%><kbd>K</kbd><% end %></span>
<% end %>
<% if Current.user.staff? %>
<%= tag.button \
@@ -23,8 +23,8 @@
controller: "hotkey",
action: "
bar#ask
keydown.meta+a@document->hotkey#click keydown.ctrl+a@document->hotkey#click" } do %>
<span>Ask (<%= hotkey_label(["ctrl", "A"]) %>)</span>
keydown.a@document->hotkey#click" } do %>
<span>Ask <% if platform.desktop? -%><kbd>A</kbd><% end %></span>
<% end %>
<% end %>
</div>