Nicer context menu sort buttons

Adds an up or down arrow code point to context menu sort buttons.
This commit is contained in:
Josh Megnauth 2024-03-16 00:52:32 -04:00 committed by Jeremy Soller
parent 1a7a4e19aa
commit 7c8bcbe998
2 changed files with 32 additions and 44 deletions

View file

@ -1605,8 +1605,8 @@ impl Tab {
//TODO: HACK If we don't reach the bottom of the view, go ahead and add a spacer to do that
{
let mut max_bottom = 0;
for item in items.iter() {
if let Some(rect) = item.1.rect_opt.get() {
for (_, item) in items {
if let Some(rect) = item.rect_opt.get() {
let bottom = (rect.y + rect.height).ceil() as usize;
if bottom > max_bottom {
max_bottom = bottom;