diff options
author | Olivier Lacan <olivier.lacan@gmail.com> | 2011-11-03 10:01:32 -0400 |
---|---|---|
committer | Olivier Lacan <olivier.lacan@gmail.com> | 2011-11-03 10:01:32 -0400 |
commit | a50f659e081785479b068b311862703584a589ca (patch) | |
tree | 6e08b43672b7b05f028952c865c8ef48fcfaeda3 /actionpack/lib/action_dispatch/middleware/templates | |
parent | 567d454d99bd472ef342c047c0038504fa4f960c (diff) | |
download | rails-a50f659e081785479b068b311862703584a589ca.tar.gz rails-a50f659e081785479b068b311862703584a589ca.tar.bz2 rails-a50f659e081785479b068b311862703584a589ca.zip |
CSS fix to prevent error output from being breaking out of body element.
Using the white-space: pre-wrap adds extra line breaks to prevent the text from breaking out of the element's box. In this case single line output can be extremely long, breaking out the <body> element.
See for reference: http://www.quirksmode.org/css/whitespace.html
Before: http://link.olivierlacan.com/BVU4
After: http://link.olivierlacan.com/BUfM
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/templates')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb index 6e71fd7ddc..1a308707d1 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb @@ -16,6 +16,7 @@ background-color: #eee; padding: 10px; font-size: 11px; + white-space: pre-wrap; } a { color: #000; } |