Browse Source

多行增加隐藏省略号显示

tags/v1.21.12.2^2
wangjr 3 years ago
parent
commit
d9b5f53ff6
1 changed files with 20 additions and 3 deletions
  1. +20
    -3
      templates/org/select_pro.tmpl

+ 20
- 3
templates/org/select_pro.tmpl View File

@@ -30,9 +30,9 @@
.descript_height{
color: #101010 !important;
margin: 10px 0;
height: 40px !important;
/* height: 40px !important; */
word-break:break-all;
line-height: 20px;
/* line-height: 20px; */
overflow: hidden;
/* overflow: hidden!important;
word-wrap:break-word!important; */
@@ -52,6 +52,16 @@
/deep/ ui.checkbox input[type=checkbox]::after{
border: 1px solid #0366D6 !important;
}
.nowrap-2 {
height: 2.837em;
line-height: 1.4285em;
overflow: hidden;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}


</style>
<div class="ui stackable grid">
@@ -60,6 +70,12 @@
<span class="header">
精选项目
</span>
<div class="ui checkbox" style="width: 33%;margin-bottom:10px" >
<input type="checkbox" id = " ${i}" checked="" onclick="checkedNum(${i})" class="Relist" >
<label><a class='omit image poping up' data-content=登记反馈  data-position="top left " data-variation="mini inverted"> 特是</a>

</label>
</div>
<!-- {{.IsOrganizationOwner}} -->
{{if .IsOrganizationOwner}}
<a class="text-right" id="model" onclick="showcreate()" >{{svg "octicon-gear" 16}}自定义</a>
@@ -79,7 +95,8 @@
<div class=" header header_card omit" >
<a class="header_card image poping up " href="{{.Link}}" data-content="{{.Name}}" data-position="top left" data-variation="tiny inverted"> {{.Name}}</a>
</div>
<div class='content descript_height'>
<div class='content descript_height nowrap-2'>
{{.Description}}
</div>


Loading…
Cancel
Save