fix: strange corner style in miniapp pop up (#5976)

* fix: strange corner style in miniapp pop up
This commit is contained in:
Konv Suu 2025-05-14 23:38:19 +08:00 committed by kangfenmao
parent 139a14408b
commit ca73ef167c
2 changed files with 6 additions and 2 deletions

View File

@ -367,7 +367,10 @@ const MinappPopupContainer: React.FC = () => {
height={'100%'}
maskClosable={false}
closeIcon={null}
style={{ marginLeft: 'var(--sidebar-width)', backgroundColor: 'var(--color-background)' }}>
style={{
marginLeft: 'var(--sidebar-width)',
backgroundColor: window.root.style.background
}}>
{!isReady && (
<EmptyView>
<Avatar

View File

@ -61,7 +61,8 @@ export function useAppInit() {
const transparentWindow = windowStyle === 'transparent' && isMac && !minappShow
if (minappShow) {
window.root.style.background = theme === 'dark' ? 'var(--color-black)' : 'var(--color-white)'
window.root.style.background =
windowStyle === 'transparent' && isMac ? 'var(--color-background)' : 'var(--navbar-background)'
return
}