Commit df1a1f50 by liimin

style(order): 优化快递信息组件样式布局

调整文本元素的flex布局,使第一个文本固定宽度,第二个文本自适应剩余空间
1 parent 3bc10243
......@@ -15,20 +15,33 @@
width: 100%;
overflow: hidden;
text {
// flex: 1;
flex-shrink: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 50%;
&: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;
......@@ -38,4 +51,4 @@
flex-shrink: 0;
}
}
}
\ No newline at end of file
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!