Expressage.scss
1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.express-info {
display: flex;
justify-content: space-between;
height: 88rpx;
gap: 12rpx;
.express-info-item {
display: flex;
gap: 8rpx;
align-items: center;
font-weight: 400;
font-size: 28rpx;
color: #333435;
&:first-child {
flex: 1;
width: 100%;
overflow: hidden;
text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&:first-child {
flex-shrink: 0; // 不收缩,只占用内容所需空间
max-width: 50%; // 最多占50%宽度
}
&:last-child {
flex: 1; // 占据剩余所有空间
}
}
// text {
// // flex: 1;
// flex-shrink: 0;
// white-space: nowrap;
// overflow: hidden;
// text-overflow: ellipsis;
// max-width: 50%;
// }
}
&:nth-child(2) {
width: auto;
flex-shrink: 0;
}
.logo {
width: 32rpx;
height: 32rpx;
border-radius: 50%;
overflow: hidden;
transform: translateY(1rpx);
flex-shrink: 0;
}
}
}