agent: Tweak MCP server configuration dialog (#29878)
Tweaks the MCP configuration dialog a bit: - Increase width of popover - Disable soft - Clear errors when hitting confirm Release Notes: - N/A
This commit is contained in:
parent
a72ade8762
commit
0246ec2dab
2 changed files with 8 additions and 3 deletions
|
@ -8721,8 +8721,10 @@ fn compute_auto_height_layout(
|
|||
let overscroll = size(em_width, px(0.));
|
||||
|
||||
let editor_width = text_width - gutter_dimensions.margin - overscroll.width - em_width;
|
||||
if editor.set_wrap_width(Some(editor_width), cx) {
|
||||
snapshot = editor.snapshot(window, cx);
|
||||
if !matches!(editor.soft_wrap_mode(cx), SoftWrap::None) {
|
||||
if editor.set_wrap_width(Some(editor_width), cx) {
|
||||
snapshot = editor.snapshot(window, cx);
|
||||
}
|
||||
}
|
||||
|
||||
let scroll_height = (snapshot.max_point().row().next_row().0 as f32) * line_height;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue