Skip to content
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

Small fix for the router visualizer #17768

Merged
merged 1 commit into from
Nov 25, 2014
Merged

Small fix for the router visualizer #17768

merged 1 commit into from
Nov 25, 2014

Conversation

bruno-
Copy link

@bruno- bruno- commented Nov 25, 2014

This is a small fix for the router visualizer. The problem is that the routes overlap with the image.

Here's the screenshot how this looks now (for a dummy/scaffolded app):
visualizer-before

Screenshot for an app with a lot of routes:
visualizer-before-for-many-routes

This is how it looks when fixed (the routes are just rendered below the image):
visualizer-after

For completeness sake, here's how to get the routes visualizer:

# in project root
bundle exec rails r 'File.write("./viz.html", Rails.application.routes.router.visualizer)'
open ./viz.html

Edit: btw. this was checked on chrome and safari.

rafaelfranca added a commit that referenced this pull request Nov 25, 2014
@rafaelfranca rafaelfranca merged commit 6ae40c8 into rails:master Nov 25, 2014
@bruno- bruno- deleted the router-visualizer-css-fix branch November 25, 2014 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants