Skip to content

Commit

Permalink
feat: watchlater items
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Oct 19, 2024
1 parent 18c4322 commit 2659163
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 4.0.4

- 移除:稍后再看列表页 双列模式 适配页面变化
- 新增:稍后再看列表页 增大视频信息字号
- 新增:稍后再看列表页 增大字号、修改列数、隐藏按钮

## 4.0.3

Expand Down
5 changes: 0 additions & 5 deletions src/modules/rules/common/groups/basic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,6 @@ html[font-patch-watchlater] {
body {
font-family: 'PingFang SC', 'HarmonyOS_Regular', 'Helvetica Neue', 'Microsoft YaHei', sans-serif !important;
font-weight: 400;
font-size: 14px;
}
.av-item .av-about .t {
font-family: 'PingFang SC', 'HarmonyOS_Medium', 'Helvetica Neue', 'Microsoft YaHei', sans-serif !important;
font-weight: 500 !important;
}
}
html[font-patch-space] {
Expand Down
23 changes: 23 additions & 0 deletions src/modules/rules/watchlater/groups/basic.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// 4 列布局
html[watchlater-layout-4-column] {
.watchlater-list-container:not(.watchlater-list-container--list) {
grid-template-columns: repeat(4, 1fr) !important;
gap: 25px 16px !important;
}
}

// 5 列布局
html[watchlater-layout-5-column] {
.watchlater-list-container:not(.watchlater-list-container--list) {
grid-template-columns: repeat(5, 1fr) !important;
gap: 25px 16px !important;
}
}

// 增大 视频信息字号
html[watchlater-increase-font-size] {
.bili-video-card {
Expand All @@ -12,3 +28,10 @@ html[watchlater-increase-font-size] {
--bili-cover-card-progress-height: 3.5px;
}
}

// 隐藏 新版反馈按钮
html[watchlater-hide-feedback] {
.feed_back {
display: none !important;
}
}
31 changes: 31 additions & 0 deletions src/modules/rules/watchlater/groups/basic.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,40 @@
import { Item } from '../../../../types/item'

export const watchlaterBasicItems: Item[] = [
{
type: 'list',
id: 'watchlater-layout',
name: '修改 视频列表列数',
description: ['未启用时,B 站自动判断列数'],
defaultValue: 'watchlater-layout-disable',
disableValue: 'watchlater-layout-disable',
options: [
{
id: 'watchlater-layout-disable',
name: '未启用',
},
{
id: 'watchlater-layout-4-column',
name: '4 列布局',
},
{
id: 'watchlater-layout-5-column',
name: '5 列布局',
},
{
id: 'watchlater-layout-6-column',
name: '6 列布局',
},
],
},
{
type: 'switch',
id: 'watchlater-increase-font-size',
name: '增大 视频信息字号',
},
{
type: 'switch',
id: 'watchlater-hide-feedback',
name: '隐藏 新版反馈按钮',
},
]

0 comments on commit 2659163

Please sign in to comment.