Titlebar fixes
This commit is contained in:
parent
5c2016ec40
commit
dc02633d9b
2 changed files with 16 additions and 13 deletions
|
@ -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,12 +253,14 @@ 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>
|
||||||
|
|
||||||
|
{!isFullScreen ? (
|
||||||
<TitleBar
|
<TitleBar
|
||||||
className="TitleBarContainer__title"
|
className="TitleBarContainer__title"
|
||||||
platform="win32"
|
platform="win32"
|
||||||
|
@ -269,6 +271,7 @@ export const TitleBarContainer = (props: PropsType): JSX.Element => {
|
||||||
onDoubleClick={titleBarDoubleClick}
|
onDoubleClick={titleBarDoubleClick}
|
||||||
hideControls
|
hideControls
|
||||||
/>
|
/>
|
||||||
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue