swagger-api / swagger-api/swagger-ui

Description alignment

Open
#4,241 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cat: style & presentation needs: UX/design input type: bug
Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

Q A
Bug or feature request? Style Bug
Which Swagger/OpenAPI version? 2.0
Which Swagger-UI version? Latest
How did you install Swagger-UI? PetStore
Which browser & version? Chrome & Firefox
Which operating system? Win10
Demonstration API definition

http://petstore.swagger.io/?defaultModelsExpandDepth=-1&defaultModelExpandDepth=5&filter=store&docExpansion=full#/store/getInventory

Expected Behavior

All the descriptions should be left aligned

Current Behavior

The descriptions are not aligned
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the linked PetStore demonstration in Swagger UI and compare the alignment of the displayed descriptions. Trace the styles or rendering entry point responsible for those descriptions; done means all descriptions are consistently left aligned in the affected view.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.