Merge pull request #4093 from WakelessSloth56/preview-features

[新增组件]隐藏用户信息卡片
This commit is contained in:
Grant Howard 2023-03-26 15:30:57 +08:00 committed by GitHub
commit 596627f8bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,17 @@
import { defineComponentMetadata } from '@/components/define'
import { toggleStyle } from '@/components/styled-component'
const name = 'hideUserCard'
export const component = defineComponentMetadata({
displayName: '隐藏用户信息卡片',
description: {
'zh-CN': '隐藏鼠标指向用户名或用户头像时弹出的浮动用户信息卡片',
},
author: {
name: 'WakelessSloth56',
link: 'https://github.com/WakelessSloth56',
},
tags: [componentsTags.style],
...toggleStyle(name, () => import('./user-card.scss')),
})

View File

@ -0,0 +1,5 @@
.user-card,
.user-card-m-exp,
.bili-user-profile {
display: none !important;
}