mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 23:02:26 +00:00
optimize long text formatter (#7973)
Co-authored-by: zhouwenxuan <aries@Mac.local>
This commit is contained in:
@@ -2,9 +2,12 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 4;
|
||||||
|
line-clamp: 4;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
line-height: 1.5;
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* links */
|
/* links */
|
||||||
|
@@ -62,8 +62,7 @@
|
|||||||
|
|
||||||
.dirent-detail-item-value:not(.editable) .sf-metadata-long-text-formatter {
|
.dirent-detail-item-value:not(.editable) .sf-metadata-long-text-formatter {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
height: 34px;
|
padding: 7px 6px 0;
|
||||||
display: inline-block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dirent-detail-item-value:not(.editable) .sf-metadata-rate-formatter {
|
.dirent-detail-item-value:not(.editable) .sf-metadata-rate-formatter {
|
||||||
|
@@ -126,9 +126,13 @@
|
|||||||
max-height: 68px;
|
max-height: 68px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sf-metadata-kanban-card .long-text-formatter,
|
||||||
.sf-metadata-view-kanban-boards-text-wrap .sf-metadata-kanban-card-record .long-text-formatter {
|
.sf-metadata-view-kanban-boards-text-wrap .sf-metadata-kanban-card-record .long-text-formatter {
|
||||||
display: block;
|
display: -webkit-box;
|
||||||
height: auto;
|
-webkit-box-orient: vertical;
|
||||||
max-height: 68px;
|
-webkit-line-clamp: 2;
|
||||||
|
line-clamp: 2;
|
||||||
|
overflow: hidden;
|
||||||
|
line-height: 1.5;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
@@ -148,6 +148,7 @@
|
|||||||
|
|
||||||
.sf-metadata-result-table-cell .sf-metadata-long-text-formatter {
|
.sf-metadata-result-table-cell .sf-metadata-long-text-formatter {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sf-metadata-result-table-cell .geolocation-formatter,
|
.sf-metadata-result-table-cell .geolocation-formatter,
|
||||||
|
Reference in New Issue
Block a user