From: Darold Date: Sat, 23 Jun 2012 21:23:27 +0000 (+0200) Subject: Fix issue #8 wrapping query that goes out of the table and makes the window scroll... X-Git-Tag: v3.2~223 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5778c185cda67494adc1621173f5656b92b82236;p=pgbadger Fix issue #8 wrapping query that goes out of the table and makes the window scroll horizontally - Isaac Reuben --- diff --git a/pgbadger b/pgbadger index 40619e1..a5106c2 100755 --- a/pgbadger +++ b/pgbadger @@ -1081,8 +1081,8 @@ table.queryList { -webkit-box-shadow:3px 3px 6px #A9A9A9; } table.queryList th { background-color: #770818; border:1px solid #FEE3C4; color: white; font-weight: normal;} -table.queryList td, table.queryList th { padding: 2px; white-space: nowrap; } -table.queryList div.sql { width: 1500px; } +table.queryList td, table.queryList th { padding: 2px;} +table.queryList div.sql { width: 800px; } table.queryList div.examples { background-color:#E7E7E7; border:1px solid #FFFFFF; -moz-border-radius:10px; padding:6px; margin:5px;} table.queryList div.examples div.example0 { padding:2px; } table.queryList div.examples div.example1 { background-color:#FFFFFF; padding:2px; border:1px solid #EBF0FC; -moz-border-radius:5px; } @@ -2065,7 +2065,8 @@ sub dump_as_html print $fh "
"; my $i = 0; foreach my $d (sort {$b <=> $a} keys %{$normalyzed_info{$k}{samples}}) { - print $fh "
", &convert_time($d), " | ", &highlight_code($normalyzed_info{$k}{samples}{$d}{query}), "
"; + my $colb = $i % 2; + print $fh "
", &convert_time($d), " | ", &highlight_code($normalyzed_info{$k}{samples}{$d}{query}), "
"; $i++; } print $fh "
"; @@ -2118,7 +2119,8 @@ sub dump_as_html print $fh "
"; my $i = 0; foreach my $d (sort {$b <=> $a} keys %{$normalyzed_info{$k}{samples}}) { - print $fh "
", &convert_time($d), " | ", &highlight_code($normalyzed_info{$k}{samples}{$d}{query}), "
"; + my $colb = $i % 2; + print $fh "
", &convert_time($d), " | ", &highlight_code($normalyzed_info{$k}{samples}{$d}{query}), "
"; $i++; } print $fh "
"; @@ -2171,7 +2173,8 @@ sub dump_as_html print $fh "
"; my $i = 0; foreach my $d (sort {$b <=> $a} keys %{$normalyzed_info{$k}{samples}}) { - print $fh "
", &convert_time($d), " | ", &highlight_code($normalyzed_info{$k}{samples}{$d}{query}), "
"; + my $colb = $i % 2; + print $fh "
", &convert_time($d), " | ", &highlight_code($normalyzed_info{$k}{samples}{$d}{query}), "
"; $i++; } print $fh "
";