fix(gui): disable text selection on UI labels, add edge-scroll during drag

UI labels (status, headings, control text) no longer selectable.
Console/hex content remains selectable for copy. ScrollArea now
nudges when drag-selecting near the bottom edge (~240px/s).
This commit is contained in:
2026-06-22 16:06:27 +08:00
parent 1da034c9b1
commit 84563ecfc8
7 changed files with 145 additions and 60 deletions

View File

@@ -1,5 +1,5 @@
use crate::models::{ConnectionStatus, SessionTab, View};
use egui::TextEdit;
use egui::{Label, TextEdit};
use pipeview_client::SessionManager;
use pipeview_core::transport::TransportConfig;
@@ -30,11 +30,14 @@ pub fn render_search_bar(ui: &mut egui::Ui, tab: &mut SessionTab) {
tab.search.next();
}
ui.label(format!(
"{}/{}",
tab.search.current_display(),
tab.search.match_count()
));
ui.add(
Label::new(format!(
"{}/{}",
tab.search.current_display(),
tab.search.match_count()
))
.selectable(false),
);
if ui.button("").clicked() {
tab.search.prev();