diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index ebc6e99f..7414530c 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -664,6 +664,7 @@ class DataController extends Zend_Controller_Action foreach($rows as $k=>$v) { $rows[$k]['ts_created'] = date("Y-m-d H:i",strtotime($v['ts_created'])); + $rows[$k]['changelog'] = str_replace("\n","

",$v['changelog']); } $data = array("list"=>$rows); $this->jsonexit($data); diff --git a/htdocs/css/watermdview.css b/htdocs/css/watermdview.css index f5c46c01..89aaf8b8 100644 --- a/htdocs/css/watermdview.css +++ b/htdocs/css/watermdview.css @@ -144,11 +144,12 @@ h2 {margin-top:10px;} .recommend .pagnv .pleft{display:block;width:100%;} .recommend .pagnv .pright{display:block;width:100%;} -.datalist{overflow:hidden;} -.datalist ul li{margin:5px 0px;padding:5px 0px;background:#f6f6f6;border:1px solid #FFF;border-radius:3px;} +.datalist{overflow:hidden;width:100%;} +.datalist ul{overflow:hidden;} +.datalist ul li{margin:5px 0px;padding:5px 0px;background:#f6f6f6;border:1px solid #FFF;border-radius:3px;word-break:break-all;width:99%;} .datalist ul li:hover,#datalist ul li:focus{border:1px solid #ccc;background:#fefefe;} .datalist ul li a{font-size:12px;} .datalist ul li a.title{font-size:14px;} .datalist ul li a.more{font-size:12px;} -.datalist ul li p{text-indent:24px;font-size:12px;line-height:24px;} +.datalist ul li p{text-indent:24px;font-size:12px;line-height:24px;word-break:break-all;white-space:normal; } .datalist ul li p img {vertical-align:middle;} \ No newline at end of file