修复不同尺寸屏幕文字显示会被省略的问题

This commit is contained in:
weipengfei 2023-11-21 11:10:09 +08:00
parent 3227c7bf8a
commit 33b08c8074
3 changed files with 13 additions and 12 deletions

View File

@ -966,13 +966,13 @@
} }
.menu_li { .menu_li {
margin-right: 20rpx; // margin-right: 20rpx;
// background-color: red; // background-color: red;
// width: 50vw; // width: 50vw;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
min-width: 16vw; min-width: 140rpx;
height: auto; height: auto;
// width: 120rpx; // width: 120rpx;
@ -988,7 +988,7 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
text-align: center; text-align: center;
padding: 4rpx 10rpx; padding: 1rpx 10rpx 4rpx 10rpx;
} }
} }
@ -1002,7 +1002,7 @@
background-color: #ff6d20; background-color: #ff6d20;
border-radius: 2em; border-radius: 2em;
color: #fff; color: #fff;
padding: 4rpx 10rpx; padding: 1rpx 10rpx 4rpx 10rpx;
} }
} }

View File

@ -968,13 +968,13 @@
} }
.menu_li { .menu_li {
margin-right: 20rpx; // margin-right: 20rpx;
// background-color: red; // background-color: red;
// width: 50vw; // width: 50vw;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
min-width: 16vw; min-width: 140rpx;
height: auto; height: auto;
// width: 120rpx; // width: 120rpx;
@ -990,7 +990,7 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
text-align: center; text-align: center;
padding: 4rpx 10rpx; padding: 1rpx 10rpx 4rpx 10rpx;
} }
} }
@ -1004,7 +1004,7 @@
background-color: #ff6d20; background-color: #ff6d20;
border-radius: 2em; border-radius: 2em;
color: #fff; color: #fff;
padding: 4rpx 10rpx; padding: 1rpx 10rpx 4rpx 10rpx;
} }
} }

View File

@ -978,13 +978,13 @@
height: 220rpx; height: 220rpx;
.menu_li { .menu_li {
margin-right: 20rpx; // margin-right: 20rpx;
// background-color: red; // background-color: red;
// width: 50vw; // width: 50vw;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
min-width: 16vw; min-width: 140rpx;
height: auto; height: auto;
// width: 120rpx; // width: 120rpx;
// display: inline-block; // display: inline-block;
@ -992,12 +992,13 @@
border: 5rpx solid #fff; border: 5rpx solid #fff;
} }
.li_text{ .li_text{
flex: 1;
width: 100%; width: 100%;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
text-align: center; text-align: center;
padding: 4rpx 10rpx; padding: 1rpx 10rpx 4rpx 10rpx;
} }
} }
.menu_li_on{ .menu_li_on{
@ -1009,7 +1010,7 @@
background-color: #ff6d20; background-color: #ff6d20;
border-radius: 2em; border-radius: 2em;
color: #fff; color: #fff;
padding: 4rpx 10rpx; padding: 1rpx 10rpx 4rpx 10rpx;
} }
} }