Skip to content

Commit f50a6be

Browse files
author
Taois
committed
feat:详情页剧情简介支持换行显示
1 parent 633a9fc commit f50a6be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dashboard/src/views/VideoDetail.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,6 +2133,8 @@ onUnmounted(() => {
21332133
max-height: 120px;
21342134
overflow: hidden;
21352135
transition: max-height 0.3s ease;
2136+
white-space: pre-wrap; /* 支持换行符显示 */
2137+
word-wrap: break-word; /* 长单词自动换行 */
21362138
}
21372139
21382140
.description-content.expanded {

0 commit comments

Comments
 (0)