change diff view style, try to fix #486

This commit is contained in:
wlx 2013-06-06 23:37:30 +00:00
parent 673eaabcdb
commit c64ecd7ece
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,6 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author); $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headScript()->appendFile('/js/diffview.js'); $this->headScript()->appendFile('/js/diffview.js');
$this->headScript()->appendFile('/js/difflib.js'); $this->headScript()->appendFile('/js/difflib.js');
$this->headLink()->appendStylesheet('/css/author.css'); $this->headLink()->appendStylesheet('/css/author.css');

View File

@ -30,7 +30,9 @@ or implied, of Chas Emerick.
table.diff { table.diff {
border-collapse:collapse; border-collapse:collapse;
border:1px solid darkgray; border:1px solid darkgray;
white-space:pre-wrap white-space:pre-wrap;break-all;
word-wrap: break-word;
word-break:break-all;
} }
table.diff tbody { table.diff tbody {
font-family:Courier, monospace font-family:Courier, monospace