mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 22:09:08 +08:00
fix(core): bg color issues in transparent mode (#5278)
fix the following style issue 
This commit is contained in:
@@ -35,13 +35,14 @@ export const AppContainer = ({
|
||||
export interface MainContainerProps extends HTMLAttributes<HTMLDivElement> {
|
||||
className?: string;
|
||||
padding?: boolean;
|
||||
transparent?: boolean;
|
||||
}
|
||||
|
||||
export const MainContainer = forwardRef<
|
||||
HTMLDivElement,
|
||||
PropsWithChildren<MainContainerProps>
|
||||
>(function MainContainer(
|
||||
{ className, padding, children, ...props },
|
||||
{ className, padding, children, transparent, ...props },
|
||||
ref
|
||||
): ReactElement {
|
||||
return (
|
||||
@@ -50,6 +51,7 @@ export const MainContainer = forwardRef<
|
||||
className={clsx(mainContainerStyle, className)}
|
||||
data-is-macos={environment.isDesktop && environment.isMacOs}
|
||||
data-show-padding={!!padding}
|
||||
data-transparent={transparent}
|
||||
ref={ref}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user