Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-06-28 21:40:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0fe7c1f0c6ef90b80c1e467b967313c33ce1d237
0fe7c1f0
1 parent
7df678d6
style(ui): 优化下拉菜单文字显示样式
为下拉菜单选项和按钮添加单行显示样式,防止文字溢出并保持布局整洁
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
1 deletions
src/views/teacher/checkinPage.vue
src/views/teacher/myClassPage.vue
src/views/teacher/checkinPage.vue
View file @
0fe7c1f
<!--
* @Date: 2025-05-29 15:34:17
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-06-2
7 15:09:17
* @LastEditTime: 2025-06-2
8 21:38:42
* @FilePath: /mlaj/src/views/teacher/checkinPage.vue
* @Description: 文件描述
-->
...
...
@@ -833,6 +833,28 @@ const handleAdd = (type) => {
.van-back-top {
background-color: #4caf50;
}
/* 下拉菜单选项文字单行显示 */
.van-dropdown-item {
.van-cell__title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
flex: 0 0 80%; /* title占80%宽度 */
}
.van-cell__value {
flex: 0 0 20%; /* value占20%宽度 */
}
}
/* 下拉菜单按钮文字单行显示 */
.van-dropdown-menu__title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.calendar-checkin {
.van-calendar__selected-day {
background: #a2d8a3 !important;
...
...
src/views/teacher/myClassPage.vue
View file @
0fe7c1f
...
...
@@ -460,6 +460,29 @@ onUnmounted(() => {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}
/* 下拉菜单选项文字单行显示 */
.van-dropdown-item {
.van-cell__title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
flex: 0 0 80%; /* title占80%宽度 */
}
.van-cell__value {
flex: 0 0 20%; /* value占20%宽度 */
}
}
/* 下拉菜单按钮文字单行显示 */
.van-dropdown-menu__title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.van-circle {
font-size: 12px;
font-weight: bold;
...
...
Please
register
or
login
to post a comment