Browse Source

优化新版首页项目动态中文字过多导致换行问题

tags/v1.22.1.1^2
OpenIhu 3 years ago
parent
commit
2cd60de89e
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      custom/public/css/git.openi.css
  2. +1
    -1
      public/home/home.js

+ 1
- 0
custom/public/css/git.openi.css View File

@@ -179,6 +179,7 @@
.homenews .ui.list>.item>.content{ .homenews .ui.list>.item>.content{
color: #E8E8E8; color: #E8E8E8;
line-height: 1.8em; line-height: 1.8em;
width: calc(100% - 3.25em) !important;
} }
.homenews .ui.list>.item{ .homenews .ui.list>.item{
padding: 0; padding: 0;


+ 1
- 1
public/home/home.js View File

@@ -129,7 +129,7 @@ function getMsg(record){
var html =""; var html ="";
html += "<div class=\"swiper-slide item\">"; html += "<div class=\"swiper-slide item\">";
html += " <img class=\"ui avatar image\" src=\"/user/avatar/" + record.ActUser.Name + "/-1\" alt=\"\">" html += " <img class=\"ui avatar image\" src=\"/user/avatar/" + record.ActUser.Name + "/-1\" alt=\"\">"
html += " <div class=\"middle aligned content\">"
html += " <div class=\"middle aligned content nowrap\">"
html += " <a href=\"/" + record.ActUser.Name + "\" title=\"\">" + record.ActUser.Name + "</a>" html += " <a href=\"/" + record.ActUser.Name + "\" title=\"\">" + record.ActUser.Name + "</a>"
return html; return html;
} }


Loading…
Cancel
Save