Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/components/AgentSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function AgentSelector(props: AgentSelectorProps) {
>
Agent
</label>
<div style={{ display: 'flex', gap: '8px' }}>
<div style={{ display: 'flex', 'flex-wrap': 'wrap', gap: '8px' }}>
<For each={props.agents}>
{(agent) => {
const isSelected = () => props.selectedAgent?.id === agent.id;
Expand All @@ -32,7 +32,8 @@ export function AgentSelector(props: AgentSelectorProps) {
class={`agent-btn ${isSelected() ? 'selected' : ''}`}
onClick={() => props.onSelect(agent)}
style={{
flex: '1',
flex: '0 1 auto',
'min-width': '70px',
padding: '10px 8px',
background: isSelected() ? theme.bgSelected : theme.bgInput,
border: isSelected() ? `1px solid ${theme.accent}` : `1px solid ${theme.border}`,
Expand Down
7 changes: 6 additions & 1 deletion src/components/NewTaskDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,12 @@ export function NewTaskDialog(props: NewTaskDialogProps) {
}

return (
<Dialog open={props.open} onClose={props.onClose} width="420px" panelStyle={{ gap: '20px' }}>
<Dialog
open={props.open}
onClose={props.onClose}
width={store.availableAgents.length > 8 ? '540px' : '420px'}
panelStyle={{ gap: '20px' }}
>
<form
ref={formRef}
onSubmit={handleSubmit}
Expand Down
Loading