aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2019-05-20 08:33:03 -0500
committerGitHub <noreply@github.com>2019-05-20 08:33:03 -0500
commitbbd065204ed45071f048badb7c0d49e35773d788 (patch)
tree554423783112defa771e9cf481db9c4a66c3aaa5 /actionpack
parent38a945d615a37f568bdaad02cd1cbec6f9ccafb5 (diff)
parent75a16b379060cd60eb077a5e93b1e87696d8a276 (diff)
downloadrails-bbd065204ed45071f048badb7c0d49e35773d788.tar.gz
rails-bbd065204ed45071f048badb7c0d49e35773d788.tar.bz2
rails-bbd065204ed45071f048badb7c0d49e35773d788.zip
Merge pull request #36306 from cseelus/responsive-rescues-layout
Make rescues layout responsive
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb13
1 files changed, 9 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
index 30ad3b6b78..f535822ccf 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
@@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Action Controller: Exception caught</title>
<style>
body {
@@ -37,6 +38,7 @@
}
h1 {
+ overflow-wrap: break-word;
margin: 0.2em 0;
line-height: 1.1em;
font-size: 2em;
@@ -52,7 +54,7 @@
border-radius: 4px;
margin: 1em 0px;
display: block;
- width: 978px;
+ max-width: 978px;
}
.summary {
@@ -80,7 +82,7 @@
.source {
border: 1px solid #D9D9D9;
background: #ECECEC;
- width: 978px;
+ max-width: 978px;
}
.source pre {
@@ -116,7 +118,7 @@
}
.line.active {
- background-color: #FFCCCC;
+ background-color: #FCC;
}
.button_to {
@@ -131,7 +133,10 @@
a { color: #980905; }
a:visited { color: #666; }
- a.trace-frames { color: #666; }
+ a.trace-frames {
+ color: #666;
+ overflow-wrap: break-word;
+ }
a:hover { color: #C52F24; }
a.trace-frames.selected { color: #C52F24 }