file manager
git clone https://git.lucas.co/cce-files.git
fix: the preview dock menu resolves rows through the toolkit's PAD-aware row_at
Dividing from the plate's top named the row below over the bottom third
of every row. 2026-09-22 context-menu audit.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
src/main.rs | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index e3fe961..b678b28 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1943,13 +1943,8 @@ impl Application for FilesystemApp {
&& cce_ui::widget::context_menu::is_visible()
{
let (px, py) = (pos.x as f32, pos.y as f32);
- let picked = if cce_ui::widget::context_menu::hit_test(px, py) {
- let my = cce_ui::widget::context_menu::y();
- let row = ((py - my) / 24.0).floor() as usize;
- self.plate_menu_actions.get(row).copied()
- } else {
- None
- };
+ let picked = cce_ui::widget::context_menu::row_at(px, py)
+ .and_then(|row| self.plate_menu_actions.get(row).copied());
cce_ui::widget::context_menu::hide();
self.plate_menu_actions.clear();
if let Some(action) = picked {