diff --git a/packages/insomnia/src/ui/components/codemirror/one-line-editor.tsx b/packages/insomnia/src/ui/components/codemirror/one-line-editor.tsx index fa068182b40..3f469e3cd03 100644 --- a/packages/insomnia/src/ui/components/codemirror/one-line-editor.tsx +++ b/packages/insomnia/src/ui/components/codemirror/one-line-editor.tsx @@ -109,7 +109,9 @@ export const OneLineEditor = forwardRef codeMirror.current.on('beforeChange', (_: CodeMirror.Editor, change: CodeMirror.EditorChangeCancellable) => { const isPaste = change.text && change.text.length > 1; if (isPaste) { - if (change.text[0].startsWith('curl')) { + const startsWithCurl = change.text[0].startsWith('curl'); + const isWhitespace = change.text.join('').trim(); + if (startsWithCurl || !isWhitespace) { change.cancel(); return; } diff --git a/packages/insomnia/src/ui/components/dropdowns/workspace-dropdown.tsx b/packages/insomnia/src/ui/components/dropdowns/workspace-dropdown.tsx index 48ffc84243c..857a583632e 100644 --- a/packages/insomnia/src/ui/components/dropdowns/workspace-dropdown.tsx +++ b/packages/insomnia/src/ui/components/dropdowns/workspace-dropdown.tsx @@ -205,7 +205,7 @@ export const WorkspaceDropdown: FC = () => { data-testid="workspace-context-dropdown" className="px-3 py-1 h-7 flex flex-1 items-center justify-center gap-2 aria-pressed:bg-[--hl-sm] rounded-sm text-[--color-font] hover:bg-[--hl-xs] focus:ring-inset ring-1 ring-transparent focus:ring-[--hl-md] transition-all text-sm truncate" > - {activeWorkspaceName} + {activeWorkspaceName} diff --git a/packages/insomnia/src/ui/routes/project.tsx b/packages/insomnia/src/ui/routes/project.tsx index dca472f212d..1834759b3c4 100644 --- a/packages/insomnia/src/ui/routes/project.tsx +++ b/packages/insomnia/src/ui/routes/project.tsx @@ -1360,7 +1360,7 @@ const ProjectRoute: FC = () => { /> )} - + {item.name}