From fad114b76a41f9a516176ba8147828eeaff031a3 Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Fri, 6 Apr 2012 00:14:08 +0100 Subject: [PATCH] Tweaked the exceptions layout CSS in order to display the error message even when wrapped around
 tags

---
 .../Resources/public/css/exception.css          | 15 ++++++++-------
 .../Resources/public/css/exception_layout.css   | 17 +++++++++++------
 2 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception.css b/src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception.css
index 682189a70a..86454c1e44 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception.css
+++ b/src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception.css
@@ -76,6 +76,7 @@ build: 56
     padding: 5px 4px;
     list-style-type: decimal;
     margin-left: 20px;
+    white-space: break-word;
 }
 .sf-exceptionreset #logs .traces li.error {
     font-style: normal;
@@ -196,7 +197,7 @@ build: 56
     vertical-align: middle;
 }
 
-.sf-exceptionreset .linked ul, 
+.sf-exceptionreset .linked ul,
 .sf-exceptionreset .linked li {
     display: inline;
 }
@@ -210,16 +211,16 @@ build: 56
     padding: 10px 0;
 }
 .sf-exceptionreset ol li {
-    list-style: decimal; 
-    margin-left: 20px; 
+    list-style: decimal;
+    margin-left: 20px;
     padding: 2px;
     padding-bottom: 20px;
 }
 .sf-exceptionreset ol ol li {
-    list-style-position: inside; 
-    margin-left: 0; 
-    white-space: nowrap; 
-    font-size: 12px; 
+    list-style-position: inside;
+    margin-left: 0;
+    white-space: nowrap;
+    font-size: 12px;
     padding-bottom: 0;
 }
 .sf-exceptionreset li .selected {
diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception_layout.css b/src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception_layout.css
index 95eac9e1e3..da4fc195de 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception_layout.css
+++ b/src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception_layout.css
@@ -3,7 +3,7 @@ html {
 }
 
 body {
-    font: 11px Verdana, Arial, sans-serif; 
+    font: 11px Verdana, Arial, sans-serif;
     color: #333;
 }
 
@@ -53,15 +53,15 @@ img {
 }
 
 .search label {
-    line-height: 28px; 
+    line-height: 28px;
     vertical-align: middle;
 }
 
 .search input {
-    width: 188px; 
-    margin-right: 10px; 
-    font-size: 12px; 
-    border: 1px solid #dadada; 
+    width: 188px;
+    margin-right: 10px;
+    font-size: 12px;
+    border: 1px solid #dadada;
     background: #FFFFFF url(../images/input_bg.gif) repeat-x left top;
     padding: 5px 6px;
     color: #565656;
@@ -129,3 +129,8 @@ img {
     width: 970px;
     margin: 0 auto;
 }
+
+pre {
+    white-space: normal;
+    font-family: Arial, Helvetica, sans-serif;
+}