Skip to content

Commit

Permalink
Fix gift panel block (fix #4968)
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Nov 10, 2024
1 parent 94a7f6f commit b2ed78d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
17 changes: 10 additions & 7 deletions registry/lib/components/style/simplify/live/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { wrapSwitchOptions } from '@/components/switch-options'
import { styledComponentEntry } from '@/components/styled-component'
import { liveUrls } from '@/core/utils/urls'

export const component = wrapSwitchOptions({
Expand Down Expand Up @@ -97,13 +96,17 @@ export const component = wrapSwitchOptions({
})({
name: 'simplifyLiveroom',
displayName: '简化直播间',
entry: styledComponentEntry(
() => import('./live.scss'),
async () => {
const { setupSkinSimplify } = await import('./skin')
setupSkinSimplify()
entry: async () => {
const { setupSkinSimplify } = await import('./skin')
setupSkinSimplify()
},
instantStyles: [
{
name: 'simplify-liveroom',
style: () => import('./live.scss'),
important: true,
},
),
],
description: {
'zh-CN': '隐藏直播间中各种不需要的内容.',
},
Expand Down
4 changes: 3 additions & 1 deletion registry/lib/components/style/simplify/live/live.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ $prefix: 'simplifyLiveroom-switch';
.gift-control-panel .wish-icon,
.gift-control-panel .wish-tip,
.gift-control-panel .left-part-ctnr,
.web-live-player-gift-icon-wrap {
.web-live-player-gift-icon-wrap,
.gift-control-panel .gift-presets .gift-panel.gift-panel.gift-panel {
display: none !important;
}
.gift-control-section,
Expand All @@ -188,6 +189,7 @@ $prefix: 'simplifyLiveroom-switch';
.gift-presets {
.gift-section {
display: flex !important;
justify-content: end !important;
}
}
.more-gift-section {
Expand Down

0 comments on commit b2ed78d

Please sign in to comment.