-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Swagger UI renders larger as needed for desktop usage -- Compact mode possible? #4458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The only question I see here is:
The answer is a solid YES Do you need to know how? |
Yes please. I looked for a while but could not find a solution except modifying the source scss and compile it. So may I miss a section in the documentation about. |
So you do know how... Are you looking for more? Maybe using the plugins or Custom layout, start reading here: I think that the great majority of users are happy with the new look, I personally like it. But I do see your point there are lot of spaces! |
Yeah, there is a lot of whitespace floating around. It certainly looks nice, but we're always up for discussions on where we sit on the form-function spectrum 😄 It's certainly possible to write custom styles for Swagger-UI - @ostranme has written a few, which you can find here: https://github.com/ostranme/swagger-ui-themes. Our organization of CSS classes is one of the weaker points that we expose to users - see my thoughts in #4460 for more context. Overall, though, I think writing custom CSS to suit your needs would be the best course of action, as opposed to creating a custom layout (thanks for the plug though, @heldersepu 😉 ). If your changes are generally applicable to the project, feel free to open a PR and we'll consider pulling them into Swagger-UI's core styles. |
@shockey thanks for pointing out the swagger-ui-themes, I just incorporated them into Swagger-Net:
I do see changes but none looks like a compact mode |
I'm still using 2.x because there's no compact mode. |
need compact theme. |
Uh oh!
There was an error while loading. Please reload this page.
The swagger UI version 3 is rendered larger than swagger UI 2. Means there are lot of spaces and the boxes are larger as needed for desktop usage.
It is may optimized for large fingers or touch pad usage. But as result a user in PC - mouse scenarios has to scroll a lot to get an overview of the APIs.
Is it possible to provide a compact mode or layout per browser type or a out of the box compacted layout & css or to document instructions how to get a more compacted version (may in a style of version 2)?
The text was updated successfully, but these errors were encountered: