Skip to content

[Bug]: Large empty space after line number in text boxes #355

@madhav165

Description

@madhav165

🐞 Bug Summary

Text boxes in Resource and Prompt addition screens have a large empty space when copy pasting content.
Line numbers are deleted with backspace. That is not expected.


🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - API
  • mcpgateway - UI (admin panel)
  • mcpgateway.wrapper - stdio wrapper
  • Federation or Transports
  • CLI, Makefiles, or shell scripts
  • Container setup (Docker/Podman/Compose)
  • Other (explain below)

🔁 Steps to Reproduce

  1. Go to Prompts/Resources screen
  2. Paste content in content or template sections. There is a large space after the number 1
  3. Press backspace - extra spaces are removed along with line number

🤔 Expected Behavior

  1. The text boxes should start showing text at left end
  2. The line numbers should not be deleted with backspace

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is neededtriageIssues / Features awaiting triage

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions