【新增】单行字体省略

This commit is contained in:
2025-11-03 18:19:06 +08:00
parent f04385a306
commit 3dbfff5f41

View File

@@ -115,3 +115,10 @@ body {
margin-bottom: 16px; margin-bottom: 16px;
color: #adb5bd; color: #adb5bd;
} }
.ellipsis-single {
white-space: nowrap; /* 禁止换行 */
overflow: hidden; /* 隐藏超出部分 */
text-overflow: ellipsis; /* 显示省略号 */
max-width: 200px; /* 自定义最大宽度(根据需求调整,如 150px/300px */
}