authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-10-03 13:26:07-07:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-10-03 13:39:45-07:00
log292bb9cf4d5f1dc50b873b5eb9a3c46b562a57fe
tree35fe9e5d224050a0564b9805df748ce48ce5a536
parent2b60b48a6c3092c588d7f3d83ed5c7fb9fa3bc15
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU

fix: the search results sort button shows its direction as an arrow over ordered lines, reading as a toggle rather than a dropdown

Assisted-by: claude-opus-5.5

4 files changed, 12 insertions(+), 2 deletions(-)

crates/snowbound/assets/icons/sort-ascending.svg created+4
......@@ -0,0 +1,4 @@
1<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2 <path d="M4.5 13V3M2 5.5L4.5 3L7 5.5" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
3 <path d="M9.5 4H11M9.5 8H12.5M9.5 12H14" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-opacity="0.7"/>
4</svg>
crates/snowbound/assets/icons/sort-descending.svg created+4
......@@ -0,0 +1,4 @@
1<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2 <path d="M4.5 3V13M2 10.5L4.5 13L7 10.5" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
3 <path d="M9.5 4H14M9.5 8H12.5M9.5 12H11" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-opacity="0.7"/>
4</svg>
crates/snowbound/src/art.rs+2
......@@ -59,6 +59,8 @@ pub const SECTION_GROUP: &[&str] = art!("icons/section-group");
5959pub const SERVER: &[&str] = art!("icons/server");
6060pub const SIDEBAR_COLLAPSE: &[&str] = art!("icons/sidebar-collapse");
6161pub const SIDEBAR_EXPAND: &[&str] = art!("icons/sidebar-expand");
62pub const SORT_ASCENDING: &[&str] = art!("icons/sort-ascending");
63pub const SORT_DESCENDING: &[&str] = art!("icons/sort-descending");
6264pub const STRIKETHROUGH: &[&str] = art!("icons/strikethrough");
6365pub const STYLES: &[&str] = art!("icons/styles");
6466pub const SUBSCRIPT: &[&str] = art!("icons/subscript");
crates/snowbound/src/pane.rs+2-2
......@@ -735,9 +735,9 @@ impl State {
735735 descending = sort == Sort::Date;
736736 }
737737 let arrow = if descending {
738 ui::shell::CHEVRON
738 art::SORT_DESCENDING
739739 } else {
740 art::CHEVRON_UP
740 art::SORT_ASCENDING
741741 };
742742 if ui::shell::tool_button(&mut self.ui, "direction", arrow, theme.text, None).clicked {
743743 descending = !descending;