Comments (7)
Hi @ddaguro
A possible solution is making the css overflow hidden on the label. This will cut the label and avoid flowing into the input field.
Do you think of other solutions ?
from swagger-ui.
Yeah I've ran into this too, but I haven't though of a clean design style.
from swagger-ui.
@jensoleg I think the oveflow hidden on label might be a good idea, especially if you're able to append an ellipse to indicate overflow. Then perhaps upon hover it could use the title attribute to show the full name of the parameter. I'll try to think of some other cleaner ways.
from swagger-ui.
I have two suggestions to solve this
Abbreviate and mark with ellipsis:
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
Wrap the string with:
word-wrap: break-word;
I think abbreviating the text with ellipsis is the way to go ?
from swagger-ui.
Added abbreviation of parameter text and tooltip. Tooltip is placed on input/textarea field.
Commit: 8fdb4af
from swagger-ui.
This is perfect! And I like how the tooltip shows on hover of the form field. Thumbs up.
from swagger-ui.
@jensoleg Would it be possible to make the parameter text above or below the input/textarea field?
from swagger-ui.
Related Issues (20)
- Installation Doc
- Failed to load resource: the server responded with a status of 504 (Outdated Optimize Dep) HOT 1
- Ability to split body params into single input boxes
- No CURL support (?)
- How to re-publish updated source? HOT 2
- JsonEdittor Configuration Css not working properly
- Try out form does not work when POST with application/x-www-form-urlencoded
- Deeper reference does not work
- Array or list parameter does not seem to work ! HOT 1
- How can i display 'Introduction'
- Not working enum references
- I will rebuild css in SASS (scss) if someone can walk me through current version
- The navigation seems to get buggy sometimes
- Installation guide?
- Is this still maintained? HOT 3
- Support for OAS 3.0?
- Angular
- Custom Layout
- SideBar not expanding HOT 1
- Any pre-built docker image available?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swagger-ui.