fix(web): 恢复视频继续播放和进度保存

- 将播放器收敛为单个共享实例,避免列表/网格内多个 video ref 导致进度保存失效
- 恢复视频播放器上方的继续播放提示
- 在播放、暂停、拖动、结束、切换页面和离开页面时保存播放位置
- 保留文件浏览分页和排序参数的前端调用
This commit is contained in:
2026-05-23 11:03:51 +08:00
parent 27e4029f4a
commit c6b05c12e5
22 changed files with 2449 additions and 165 deletions
+35
View File
@@ -768,6 +768,8 @@ a {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 8px;
}
@@ -778,6 +780,35 @@ a {
color: var(--muted);
}
.file-toolbar-right {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: flex-end;
gap: 8px;
}
.sort-control {
display: flex;
align-items: center;
gap: 6px;
color: var(--muted);
font-size: 13px;
font-weight: 700;
}
.sort-control select {
width: auto;
min-width: 118px;
min-height: 32px;
padding: 4px 28px 4px 9px;
font-size: 13px;
}
.sort-control.compact select {
min-width: 88px;
}
/* File grid / card view */
.file-grid {
display: grid;
@@ -1132,6 +1163,10 @@ a {
.view-toggle {
align-self: flex-start;
}
.file-toolbar-right {
justify-content: flex-start;
}
}
@media (min-width: 900px) {