mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 15:03:31 +00:00
fix: align input editor with message content padding
Adds paddingX option to Editor component and hardcodes paddingX: 1 in coding-agent editors so the cursor/text aligns with chat message content.
This commit is contained in:
parent
20f5fcc79d
commit
48ea444bc4
7 changed files with 48 additions and 16 deletions
|
|
@ -241,7 +241,7 @@ export class InteractiveMode {
|
|||
this.statusContainer = new Container();
|
||||
this.widgetContainer = new Container();
|
||||
this.keybindings = KeybindingsManager.create();
|
||||
this.defaultEditor = new CustomEditor(this.ui, getEditorTheme(), this.keybindings);
|
||||
this.defaultEditor = new CustomEditor(this.ui, getEditorTheme(), this.keybindings, { paddingX: 1 });
|
||||
this.editor = this.defaultEditor;
|
||||
this.editorContainer = new Container();
|
||||
this.editorContainer.addChild(this.editor as Component);
|
||||
|
|
@ -1150,6 +1150,7 @@ export class InteractiveMode {
|
|||
this.hideExtensionEditor();
|
||||
resolve(undefined);
|
||||
},
|
||||
{ paddingX: 1 },
|
||||
);
|
||||
|
||||
this.editorContainer.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue