Skip to content

Commit

Permalink
limix max-height of long vardumps, and prevent superwide vardumps
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Dec 11, 2012
1 parent 9b9b7e8 commit 69a327c
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions lib/better_errors/templates/main.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
text-align: left;
}

textarea {
resize: none;
}

body {
font-size: 10pt;
}
Expand Down Expand Up @@ -372,7 +376,7 @@
* Monospace
* --------------------------------------------------------------------- */

pre, code, .repl input, .repl .prompt span {
pre, code, .repl input, .repl .prompt span, textarea {
font-family: menlo, lucida console, monospace;
font-size: 8pt;
}
Expand Down Expand Up @@ -574,22 +578,31 @@
overflow-y: auto;
}

.sub table {
table-layout: fixed;
}

.sub table td {
border-top: dotted 1px #ddd;
padding: 7px 1px;
width: 90%;
}

.sub table td.name {
width: auto;
min-width: 150px;
width: 150px;

font-weight: bold;
font-size: 0.8em;
padding-right: 20px;
}

.sub table td pre {
max-height: 15em;
overflow-y: auto;
}

.sub table td pre {
width: 100%;

word-wrap: break-word;
white-space: normal;
}
Expand All @@ -609,7 +622,7 @@
.inset pre::-webkit-scrollbar-thumb,
.console pre::-webkit-scrollbar-thumb,
.code::-webkit-scrollbar-thumb {
background: #ddd;
background: #ccc;
border-radius: 5px;
}

Expand All @@ -623,6 +636,12 @@
background: -webkit-linear-gradient(left, #aaa, #999);
}

.console pre:hover::-webkit-scrollbar-thumb,
.inset pre:hover::-webkit-scrollbar-thumb,
.code:hover::-webkit-scrollbar-thumb {
background: #888;
}


</style>
</head>
Expand Down

0 comments on commit 69a327c

Please sign in to comment.