mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-05 20:41:30 +08:00
fix: strange corner style in miniapp pop up (#5976)
* fix: strange corner style in miniapp pop up
This commit is contained in:
parent
139a14408b
commit
ca73ef167c
@ -367,7 +367,10 @@ const MinappPopupContainer: React.FC = () => {
|
|||||||
height={'100%'}
|
height={'100%'}
|
||||||
maskClosable={false}
|
maskClosable={false}
|
||||||
closeIcon={null}
|
closeIcon={null}
|
||||||
style={{ marginLeft: 'var(--sidebar-width)', backgroundColor: 'var(--color-background)' }}>
|
style={{
|
||||||
|
marginLeft: 'var(--sidebar-width)',
|
||||||
|
backgroundColor: window.root.style.background
|
||||||
|
}}>
|
||||||
{!isReady && (
|
{!isReady && (
|
||||||
<EmptyView>
|
<EmptyView>
|
||||||
<Avatar
|
<Avatar
|
||||||
|
|||||||
@ -61,7 +61,8 @@ export function useAppInit() {
|
|||||||
const transparentWindow = windowStyle === 'transparent' && isMac && !minappShow
|
const transparentWindow = windowStyle === 'transparent' && isMac && !minappShow
|
||||||
|
|
||||||
if (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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user