git_ui: Commit modal editor cleanup (#25645)
- Fixes cursor style in the commit modal - Use commit button instead of kb hint - Update layout to scale better for large commit messages No message:  Long Message:   Release Notes: - N/A
This commit is contained in:
parent
bab65011b4
commit
1f80f58104
2 changed files with 148 additions and 294 deletions
|
@ -621,6 +621,10 @@ impl GitPanel {
|
|||
}
|
||||
}
|
||||
|
||||
pub(crate) fn editor_focus_handle(&self, cx: &mut Context<Self>) -> FocusHandle {
|
||||
self.commit_editor.focus_handle(cx).clone()
|
||||
}
|
||||
|
||||
fn focus_editor(&mut self, _: &FocusEditor, window: &mut Window, cx: &mut Context<Self>) {
|
||||
self.commit_editor.update(cx, |editor, cx| {
|
||||
window.focus(&editor.focus_handle(cx));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue