fix(ui): 修复首页试听条文字折行问题,完善单行文本省略截断规范与文案精简

这个提交包含在:
wikiboss
2026-09-16 20:22:18 +08:00
父节点 21792f10b3
当前提交 63e81995ad
共有 9 个文件被更改,包括 146 次插入 和 105 次删除

查看文件

@@ -625,11 +625,47 @@ const navTo = (url) => {
padding: 0 16rpx;
margin-bottom: 16rpx;
transition: all 0.2s ease;
box-sizing: border-box;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
flex-shrink: 0;
.voice-icon-svg {
width: 20rpx;
height: 20rpx;
margin-right: 8rpx;
flex-shrink: 0;
}
.voice-text {
flex: 1;
min-width: 0;
font-size: 20rpx;
color: #818CF8;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.wave-lines {
display: flex;
align-items: flex-end;
gap: 4rpx;
margin-left: 8rpx;
flex-shrink: 0;
.wave-item {
width: 4rpx;
background: #818CF8;
border-radius: 2rpx;
&.w1 { height: 14rpx; animation: bounce 0.6s infinite ease-in-out; }
&.w2 { height: 22rpx; animation: bounce 0.6s infinite ease-in-out 0.2s; }
&.w3 { height: 10rpx; animation: bounce 0.6s infinite ease-in-out 0.4s; }
}
}
&.playing {
background: rgba(99, 102, 241, 0.3);
border-color: #818CF8;
@@ -654,33 +690,6 @@ const navTo = (url) => {
background: #FB7185;
}
}
.voice-icon-svg {
width: 20rpx;
height: 20rpx;
margin-right: 8rpx;
}
.voice-text {
font-size: 20rpx;
color: #818CF8;
font-weight: 600;
}
.wave-lines {
display: flex;
align-items: flex-end;
gap: 4rpx;
margin-left: 8rpx;
.wave-item {
width: 4rpx;
background: #818CF8;
border-radius: 2rpx;
&.w1 { height: 14rpx; animation: bounce 0.6s infinite ease-in-out; }
&.w2 { height: 22rpx; animation: bounce 0.6s infinite ease-in-out 0.2s; }
&.w3 { height: 10rpx; animation: bounce 0.6s infinite ease-in-out 0.4s; }
}
}
}
.card-footer {