Skip to content

Commit eed695c

Browse files
author
Taois
committed
feat:控制栏画质切换
1 parent 6456d5b commit eed695c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

dashboard/src/components/players/ArtVideoPlayer.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,6 @@ const initArtPlayer = async (url) => {
472472
{
473473
position: 'right',
474474
html: availableQualities.value.length > 1 ? `画质: ${getCurrentQualityLabel.value}` : '',
475-
tooltip: availableQualities.value.length > 1 ? '选择画质' : '',
476475
style: availableQualities.value.length > 1 ? {} : { display: 'none' },
477476
selector: availableQualities.value.length > 1 ? availableQualities.value.map(q => ({
478477
html: q.name || '未知',
@@ -1358,6 +1357,17 @@ onUnmounted(() => {
13581357
color: #23ade5;
13591358
}
13601359
1360+
/* ArtPlayer selector 弹层位置调整 */
1361+
:deep(.art-selector) {
1362+
bottom: 45px !important; /* 向上调整弹层位置,避免被遮挡 */
1363+
margin-bottom: 5px !important;
1364+
}
1365+
1366+
:deep(.art-control-selector .art-selector) {
1367+
bottom: 45px !important;
1368+
margin-bottom: 5px !important;
1369+
}
1370+
13611371
/* 紧凑按钮组样式 */
13621372
.compact-button-group {
13631373
display: flex;

0 commit comments

Comments
 (0)