From 15fa905bd404c154a0330806b406bb14c0eca359 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 8 Sep 2010 13:54:02 +0200 Subject: [PATCH] [FrameworkBundle] fixed exception styles --- .../Bundle/FrameworkBundle/Resources/public/css/exception.css | 3 ++- .../Bundle/FrameworkBundle/Resources/views/Exception/trace.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception.css b/src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception.css index 479a54a153..cce6639070 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception.css +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception.css @@ -19,12 +19,13 @@ build: 56 .sf-exceptionreset ul li { padding-bottom: 5px } .sf-exceptionreset ol { padding: 10px 0 } .sf-exceptionreset ol li { list-style: decimal; margin-left: 20px; padding: 2px } -.sf-exceptionreset ol ol li { list-style-position: inside; margin-left: 0 } +.sf-exceptionreset ol ol li { list-style-position: inside; margin-left: 0; white-space: nowrap } .sf-exceptionreset li .selected { background-color: #ffd; padding: 4px 3px } .sf-exceptionreset p.error { padding: 10px; background-color: #f00; font-weight: bold; text-align: center; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; } .sf-exceptionreset p.error a { color: #fff } .sf-exceptionreset .block { padding: 20px 25px; margin-bottom: 10px; border: 1px solid #ddd; background-color: #fff; text-align:left; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; width: 770px; box-shadow: 0 1px 2px rgba(0,0,0,0.15); -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.15); -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.3); } .sf-exceptionreset .traces { display: none; margin-top: 10px } +.sf-exceptionreset .trace { overflow: auto; width: 746px; } .sf-exceptionreset #message { margin-top: 30px; margin-bottom: 10px; padding: 20px 25px; text-align:left; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; width: 770px; background-color: #c8e8f3; border: 1px solid #ddd; background-image: -moz-linear-gradient(-90deg, #fff, #c8e8f3); background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#c8e8f3)); box-shadow: 0 1px 2px rgba(0,0,0,0.15); -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.15); -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.3); } .sf-exceptionreset #content { border: 1px solid #ddd; margin-top: 10px; padding: 7px; overflow: auto; } .sf-exceptionreset a.file_link { text-decoration: none; } diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/views/Exception/trace.php b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Exception/trace.php index 4a24b11dfe..03eb1b33c3 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/views/Exception/trace.php +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Exception/trace.php @@ -4,7 +4,7 @@ in get('code')->formatFile($trace['file'], $trace['line']) ?> »
-
+
get('code')->fileExcerpt($trace['file'], $trace['line']) ?>