Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
points-mall
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit df1a1f50
authored
Sep 10, 2025
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style(order): 优化快递信息组件样式布局
调整文本元素的flex布局,使第一个文本固定宽度,第二个文本自适应剩余空间
1 parent
3bc10243
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
packageMine/pages/order/components/Expressage/Expressage.scss
packageMine/pages/order/components/Expressage/Expressage.scss
View file @
df1a1f5
...
...
@@ -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
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment