Skip to content

Commit 201d2c9

Browse files
committed
Improve state handling for bottom box
1 parent 6f48485 commit 201d2c9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/app-logic/url-handling.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ export function getQueryStringFromUrlState(urlState: UrlState): string {
363363
assemblyView.nativeSymbol
364364
);
365365
}
366-
}
367-
if (isBottomBoxFullscreen) {
368-
query.bottomFullscreen = true;
366+
if (isBottomBoxFullscreen) {
367+
query.bottomFullscreen = true;
368+
}
369369
}
370370
break;
371371
}

src/components/app/BottomBox.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,14 @@ class BottomBoxImpl extends React.PureComponent<Props> {
168168
if (event.key === 'Escape' && this.props.isFullscreen) {
169169
this.props.toggleBottomBoxFullscreen();
170170
}
171-
}
171+
};
172172

173173
_onClickCloseButton = () => {
174174
this.props.closeBottomBox();
175+
// Close the fullscreen if we're closing the bottom box
176+
if (this.props.isFullscreen) {
177+
this.props.toggleBottomBoxFullscreen();
178+
}
175179
};
176180

177181
override render() {

0 commit comments

Comments
 (0)