Skip to content

Commit

Permalink
feat: video page unfold below info desc
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Oct 31, 2024
1 parent 0400c92 commit ee7ec3b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## 4.0.5

- 新增:动态内容关键词过滤
- 更新:首页边栏按钮屏蔽功能
- 新增:播放页 自动展开视频简介
- 更新:首页 边栏按钮屏蔽

## 4.0.4

Expand Down
14 changes: 14 additions & 0 deletions src/modules/rules/video/groups/toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ html[video-page-hide-below-info-video-report-menu] {
}
}

// 展开 视频简介
html[video-page-unfold-below-info-desc] {
#v_desc,
.video-desc-container {
margin-bottom: 0 !important;
.basic-desc-info {
height: auto !important;
}
.toggle-btn {
display: none !important;
}
}
}

// 隐藏 视频简介
html[video-page-hide-below-info-desc] {
#v_desc {
Expand Down
6 changes: 6 additions & 0 deletions src/modules/rules/video/groups/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ export const videoToolbarItems: Item[] = [
id: 'video-page-hide-below-info-video-report-menu',
name: '隐藏 举报/笔记/稍后再看',
},
{
type: 'switch',
id: 'video-page-unfold-below-info-desc',
name: '展开 视频简介',
description: ['自动隐藏 [展开/收起] 按钮'],
},
{
type: 'switch',
id: 'video-page-hide-below-info-desc',
Expand Down

0 comments on commit ee7ec3b

Please sign in to comment.