fix(xref): Change Path Type flyout with hover reveal

The Change Path Type row shows a right-triangle affordance and reveals the Make Absolute / Make Relative / Remove Path submenu beside it. The flyout opens on hover only and a shared submenu-row style removes dead code from the earlier iterations.
This commit is contained in:
Karim Jerbi committed 2026-09-15 23:56:32 +01:00
1 parent 1c8e3ff3d7
commit 10758f3e59
4 files changed
+80 -36

No files matched your search

+2 -2
View File
@@ -1191,8 +1191,8 @@ pub(super) fn on_ribbon_tool_click(&mut self, tool_id: String, event: ModuleEven
}
}
}
XrefPaletteOp::Open | XrefPaletteOp::Attach => {
// Handled in update/mod.rs XrefRowOp dispatch (navigation / picker), not here.
XrefPaletteOp::Open => {
// Handled in update/mod.rs XrefRowOp dispatch (navigation), not here.
}
}
if done > 0 {
+9
View File
@@ -2333,9 +2333,18 @@ impl OpenCADStudio {
}
// Row-scoped op: select the row first, then run the op.
self.xref_manager.right_click_select(index);
self.xref_manager.row_change_path_open = false;
self.xref_manager_op(op);
Task::none()
}
Message::XrefRowChangePathEnter => {
self.xref_manager.row_change_path_open = true;
Task::none()
}
Message::XrefRowChangePathLeave => {
self.xref_manager.row_change_path_open = false;
Task::none()
}
Message::XrefFindReplacePrompt => {
// No fields in the panel: prefill the command line so the
// existing `XREF Path Find <old> <new>` parsing runs it.