Skip to content

Conversation

@multiplex55
Copy link
Owner

Motivation

  • Allow horizontal overflow to be scrollable in several dashboard list widgets by switching to egui::ScrollArea::both().
  • Preserve existing vertical behavior and sizing constraints by keeping show_rows and the row_height calculations unchanged.
  • Ensure long labels and snippets do not wrap and instead scroll horizontally by avoiding forced width constraints and disabling wrapping (.wrap(false)).
  • Keep behavior consistent with the existing todo widget which already used ScrollArea::both().

Description

  • Replaced egui::ScrollArea::vertical() with egui::ScrollArea::both() in src/dashboard/widgets/{clipboard_recent.rs,clipboard_snippets.rs,notes_recent.rs,process_list.rs,query_list.rs,recent_notes.rs,tempfiles.rs}.
  • Switched list row widgets to non-wrapping variants using ui.add(egui::Button::new(...).wrap(false)) and ui.add(egui::Label::new(...).wrap(false)) so long text can grow horizontally and be scrolled.
  • Preserved show_rows(...), auto_shrink([false; 2]), and the original row_height calculations so vertical scrolling and sizing remain unchanged.
  • Adjusted process_list to use non-wrapping buttons/labels for consistent horizontal-scroll behavior alongside the other list widgets.

Testing

  • No automated tests or CI jobs were run as part of this change.

Codex Task

@multiplex55 multiplex55 merged commit 2840bf8 into master Jan 9, 2026
1 check passed
@multiplex55 multiplex55 deleted the codex/replace-scrollarea-vertical-with-both branch January 11, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants