feat(modal): add edit mode with anchored dropdowns and keyboard workflow
- Add TaskDetailModal edit mode with form validation, tags + annotations editing, and SaveEdits event - Anchor dropdown/suggestion menus using deferred/anchored overlay to avoid clipping - Add modal-specific keymap contexts (ModalInput/ModalDropdown) for Esc/Ctrl+Enter/Tab navigation - Refresh modal project suggestions from tasks; improve project child filtering boundary match - Small UI polish (toast styling, layout spacing) and update shortcuts docs
This commit is contained in:
@@ -180,3 +180,17 @@ pub fn mix_color(base: Color, tint: Color, amount: f32) -> Color {
|
||||
a: 1.0,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn focus_wrap(child: impl IntoElement, focused: bool, theme: &Theme) -> gpui::Div {
|
||||
let border_color = if focused {
|
||||
theme.focus_ring
|
||||
} else {
|
||||
gpui::rgba(0x00000000)
|
||||
};
|
||||
|
||||
gpui::div()
|
||||
.border_2()
|
||||
.border_color(border_color)
|
||||
.rounded_md()
|
||||
.child(child)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user