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
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ export const OneLineEditor = forwardRef<OneLineEditorHandle, OneLineEditorProps>
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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
<span className="truncate">{activeWorkspaceName}</span>
<span className="truncate" title={activeWorkspaceName}>{activeWorkspaceName}</span>
<Icon icon="caret-down" />
</Button>
<Popover className="min-w-max">
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia/src/ui/routes/project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ const ProjectRoute: FC = () => {
/>
)}
</div>
<Heading className="pt-4 text-lg font-bold truncate">
<Heading className="pt-4 text-lg font-bold truncate" title={item.name}>
{item.name}
</Heading>
<div className="flex-1 flex flex-col gap-2 justify-end text-sm text-[--hl]">
Expand Down