Merge pull request #4306 from TimmyOVO/preview-features

feat: 添加简化全屏直播时的底部礼物栏功能
This commit is contained in:
Grant Howard 2023-07-18 22:40:35 +08:00 committed by GitHub
commit 86aa6a5101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#full-screen-interactive-wrap {
display: none !important
}
#fullscreen-danmaku-vm .fullscreen-danmaku {
bottom: 5px !important
}

View File

@ -0,0 +1,21 @@
import { defineComponentMetadata } from '@/components/define'
import { liveUrls } from '@/core/utils/urls'
export const component = defineComponentMetadata({
name: 'hide-fullscreen-gift-bar',
displayName: '全屏直播礼物简化',
description: '移除全屏观看直播时的底部礼物栏',
author: {
name: 'TimmyOVO',
link: 'https://github.com/TimmyOVO',
},
instantStyles: [
{
name: 'hide-fullscreen-gift',
style: () => import('./hide-full-screen-gift.css'),
},
],
entry: none,
tags: [componentsTags.live, componentsTags.style],
urlInclude: liveUrls,
})