fix: 显示界面,功能优化。

This commit is contained in:
tianyongbao
2026-06-28 15:43:23 +08:00
parent be3135b166
commit 9027869e97
2 changed files with 30 additions and 12 deletions

View File

@@ -454,21 +454,26 @@ function previewAttachment(urls, index) {
// 活动特有 - 卡片头部布局
.item-header {
gap: 12rpx;
/* 允许 header 内容换行,避免长地点/长名字被省略号截断 */
align-items: flex-start;
.place-info {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
align-items: flex-start;
.place-text {
color: #ffffff;
font-size: 30rpx;
font-weight: 500;
line-height: 1.3;
/* 长地点名称最多2行后省略 */
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
}
@@ -489,9 +494,10 @@ function previewAttachment(urls, index) {
.name-section {
display: flex;
align-items: center;
flex: 1;
align-items: flex-start;
flex: 0 1 auto;
min-width: 0;
max-width: 40%;
justify-content: flex-end;
.name-value {
@@ -499,9 +505,13 @@ function previewAttachment(urls, index) {
font-size: 30rpx;
font-weight: 700;
line-height: 1.3;
white-space: nowrap;
/* 长活动名最多2行后省略 */
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
text-align: right;
letter-spacing: 0.5rpx;
}
}