Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(desktop-app): frame composer controls

Josué6f0593176f75
diff --git a/desktop-app/ui/src/components/agents/__tests__/ComposerPanel.test.tsx b/desktop-app/ui/src/components/agents/__tests__/ComposerPanel.test.tsx
index 442e90bf3..d4baa543f 100644
--- a/desktop-app/ui/src/components/agents/__tests__/ComposerPanel.test.tsx
+++ b/desktop-app/ui/src/components/agents/__tests__/ComposerPanel.test.tsx
@@ -78,11 +78,15 @@ describe.each([
it('grows, caps scrolling, and shrinks its text viewport without covering it with actions', () => {
const { container, rerender } = render(<ComposerPanel inline={inline} />)
const textarea = screen.getByTestId('chat-input') as HTMLTextAreaElement
+ const shell = container.querySelector('.composer-input-shell')
const viewport = container.querySelector('.composer-textarea-viewport')
const toolbar = container.querySelector('.composer-input-actions')
+ expect(shell).toBeTruthy()
expect(viewport).toBeTruthy()
expect(toolbar).toBeTruthy()
+ expect(shell?.contains(viewport)).toBe(true)
+ expect(shell?.contains(toolbar)).toBe(true)
expect(viewport?.contains(toolbar)).toBe(false)
setScrollHeight(textarea, 96)
diff --git a/desktop-app/ui/src/styles.css b/desktop-app/ui/src/styles.css
index 5370de5f8..c814d9d6c 100644
--- a/desktop-app/ui/src/styles.css
+++ b/desktop-app/ui/src/styles.css
@@ -6796,6 +6796,17 @@ h3 {
position: relative;
display: grid;
gap: var(--space-1-5);
+ overflow: hidden;
+ border: 1px solid rgba(var(--edge-rgb), 0.22);
+ border-radius: var(--radius-md);
+ background: var(--surface-soft);
+}
+
+.composer-input-shell:focus-within {
+ border-color: rgba(var(--focus-rgb), 0.76);
+ box-shadow:
+ 0 0 0 1px rgba(var(--focus-rgb), 0.56),
+ 0 0 0 3px rgba(var(--focus-rgb), 0.22);
}
.composer-input-shell--drag-active textarea {
@@ -6807,9 +6818,18 @@ h3 {
display: block;
width: 100%;
max-height: 240px;
+ border: 0;
+ border-radius: 0;
+ background: transparent;
+ box-shadow: none;
overflow-y: hidden;
}
+.composer-input-shell textarea:focus {
+ border-color: transparent;
+ box-shadow: none;
+}
+
.composer-drop-overlay {
position: absolute;
inset: 0;