1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +00:00

optimize long text formatter (#7973)

Co-authored-by: zhouwenxuan <aries@Mac.local>
This commit is contained in:
Aries
2025-06-26 17:05:20 +08:00
committed by GitHub
parent c6805b9f64
commit 3f0e3591e9
4 changed files with 14 additions and 7 deletions

View File

@@ -2,9 +2,12 @@
width: 100%;
max-width: 100%;
height: 100%;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
line-clamp: 4;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 1.5;
}
/* links */

View File

@@ -62,8 +62,7 @@
.dirent-detail-item-value:not(.editable) .sf-metadata-long-text-formatter {
line-height: 1.5;
height: 34px;
display: inline-block;
padding: 7px 6px 0;
}
.dirent-detail-item-value:not(.editable) .sf-metadata-rate-formatter {

View File

@@ -126,9 +126,13 @@
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 {
display: block;
height: auto;
max-height: 68px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
overflow: hidden;
line-height: 1.5;
white-space: normal;
}

View File

@@ -148,6 +148,7 @@
.sf-metadata-result-table-cell .sf-metadata-long-text-formatter {
width: 100%;
text-overflow: ellipsis;
}
.sf-metadata-result-table-cell .geolocation-formatter,