Skip to content

Commit fc9c29e

Browse files
committed
Merge branch 'master' into conat-supercluster
2 parents 0ea68be + b4318ca commit fc9c29e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/packages/frontend/frame-editors/frame-tree/title-bar.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ export function FrameTitleBar(props: FrameTitleBarProps) {
361361
}}
362362
key={"control-buttons"}
363363
>
364-
{!props.is_full ? render_split_row() : undefined}
365-
{!props.is_full ? render_split_col() : undefined}
364+
{is_active && !props.is_full ? render_split_row() : undefined}
365+
{is_active && !props.is_full ? render_split_col() : undefined}
366366
{!props.is_only ? render_full() : undefined}
367367
{render_x()}
368368
</ButtonGroup>
@@ -748,7 +748,6 @@ export function FrameTitleBar(props: FrameTitleBarProps) {
748748
if (!is_active) {
749749
return (
750750
<div style={{ display: "flex", width: "100%" }}>
751-
{renderSaveTimetravelGroup()}
752751
<div style={{ flex: 1, textAlign: "center" }}>{renderTitle()}</div>
753752
</div>
754753
);
@@ -827,6 +826,9 @@ export function FrameTitleBar(props: FrameTitleBarProps) {
827826
}
828827

829828
function allButtonsPopover() {
829+
if (!is_active) {
830+
return null;
831+
}
830832
return (
831833
<Popover
832834
overlayStyle={{ zIndex: 990 }}
@@ -1102,6 +1104,8 @@ export function FrameTitleBar(props: FrameTitleBarProps) {
11021104
style={{
11031105
borderBottom: popup ? undefined : "1px solid #ccc",
11041106
background: "#fafafa",
1107+
height: "36px",
1108+
opacity: is_active ? undefined : 0.5,
11051109
}}
11061110
>
11071111
<div style={{ margin: "-1px 0 -1px 0" }}>{v}</div>
@@ -1252,8 +1256,8 @@ export function FrameTitleBar(props: FrameTitleBarProps) {
12521256
className={"cc-frame-tree-title-bar"}
12531257
>
12541258
{renderMainMenusAndButtons()}
1255-
{renderConnectionStatus()}
1256-
{allButtonsPopover()}
1259+
{is_active && renderConnectionStatus()}
1260+
{is_active && allButtonsPopover()}
12571261
{renderFrameControls()}
12581262
</div>
12591263
{renderButtonBar()}

0 commit comments

Comments
 (0)