Titlebar fixes
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__content {
|
&__content {
|
||||||
height: var(--window-height);
|
height: calc(100vh - var(--titlebar-height));
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -215,7 +215,7 @@ export const TitleBarContainer = (props: PropsType): JSX.Element => {
|
|||||||
[theme, hideMenuBar]
|
[theme, hideMenuBar]
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!hasCustomTitleBar || isFullScreen) {
|
if (!hasCustomTitleBar) {
|
||||||
return <>{children}</>;
|
return <>{children}</>;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -253,22 +253,25 @@ export const TitleBarContainer = (props: PropsType): JSX.Element => {
|
|||||||
<div
|
<div
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'TitleBarContainer',
|
'TitleBarContainer',
|
||||||
isWindowActive ? 'TitleBarContainer--active' : null
|
isWindowActive ? 'TitleBarContainer--active' : null,
|
||||||
|
isFullScreen ? 'TitleBarContainer--fullscreen' : null
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className="TitleBarContainer__padding" />
|
<div className="TitleBarContainer__padding" />
|
||||||
<div className="TitleBarContainer__content">{children}</div>
|
<div className="TitleBarContainer__content">{children}</div>
|
||||||
|
|
||||||
<TitleBar
|
{!isFullScreen ? (
|
||||||
className="TitleBarContainer__title"
|
<TitleBar
|
||||||
platform="win32"
|
className="TitleBarContainer__title"
|
||||||
iconSrc={iconSrc}
|
platform="win32"
|
||||||
theme={titleBarTheme}
|
iconSrc={iconSrc}
|
||||||
maximized={isMaximized}
|
theme={titleBarTheme}
|
||||||
menu={maybeMenu}
|
maximized={isMaximized}
|
||||||
onDoubleClick={titleBarDoubleClick}
|
menu={maybeMenu}
|
||||||
hideControls
|
onDoubleClick={titleBarDoubleClick}
|
||||||
/>
|
hideControls
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user