Enable horizontal scrolling in dashboard widgets #670
Merged
+49
−25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
egui::ScrollArea::both().show_rowsand therow_heightcalculations unchanged..wrap(false)).todowidget which already usedScrollArea::both().Description
egui::ScrollArea::vertical()withegui::ScrollArea::both()insrc/dashboard/widgets/{clipboard_recent.rs,clipboard_snippets.rs,notes_recent.rs,process_list.rs,query_list.rs,recent_notes.rs,tempfiles.rs}.ui.add(egui::Button::new(...).wrap(false))andui.add(egui::Label::new(...).wrap(false))so long text can grow horizontally and be scrolled.show_rows(...),auto_shrink([false; 2]), and the originalrow_heightcalculations so vertical scrolling and sizing remain unchanged.process_listto use non-wrapping buttons/labels for consistent horizontal-scroll behavior alongside the other list widgets.Testing
Codex Task