@@ -361,8 +361,8 @@ export function FrameTitleBar(props: FrameTitleBarProps) {
361
361
} }
362
362
key = { "control-buttons" }
363
363
>
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 }
366
366
{ ! props . is_only ? render_full ( ) : undefined }
367
367
{ render_x ( ) }
368
368
</ ButtonGroup >
@@ -748,7 +748,6 @@ export function FrameTitleBar(props: FrameTitleBarProps) {
748
748
if ( ! is_active ) {
749
749
return (
750
750
< div style = { { display : "flex" , width : "100%" } } >
751
- { renderSaveTimetravelGroup ( ) }
752
751
< div style = { { flex : 1 , textAlign : "center" } } > { renderTitle ( ) } </ div >
753
752
</ div >
754
753
) ;
@@ -827,6 +826,9 @@ export function FrameTitleBar(props: FrameTitleBarProps) {
827
826
}
828
827
829
828
function allButtonsPopover ( ) {
829
+ if ( ! is_active ) {
830
+ return null ;
831
+ }
830
832
return (
831
833
< Popover
832
834
overlayStyle = { { zIndex : 990 } }
@@ -1102,6 +1104,8 @@ export function FrameTitleBar(props: FrameTitleBarProps) {
1102
1104
style = { {
1103
1105
borderBottom : popup ? undefined : "1px solid #ccc" ,
1104
1106
background : "#fafafa" ,
1107
+ height : "36px" ,
1108
+ opacity : is_active ? undefined : 0.5 ,
1105
1109
} }
1106
1110
>
1107
1111
< div style = { { margin : "-1px 0 -1px 0" } } > { v } </ div >
@@ -1252,8 +1256,8 @@ export function FrameTitleBar(props: FrameTitleBarProps) {
1252
1256
className = { "cc-frame-tree-title-bar" }
1253
1257
>
1254
1258
{ renderMainMenusAndButtons ( ) }
1255
- { renderConnectionStatus ( ) }
1256
- { allButtonsPopover ( ) }
1259
+ { is_active && renderConnectionStatus ( ) }
1260
+ { is_active && allButtonsPopover ( ) }
1257
1261
{ renderFrameControls ( ) }
1258
1262
</ div >
1259
1263
{ renderButtonBar ( ) }
0 commit comments