Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit 3d07906

Browse files
committed
Only show accurate information, the message will only appear for current running file
1 parent 9ded03e commit 3d07906

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/view/components/microbit/MicrobitSimulator.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ export class MicrobitSimulator extends React.Component<any, IState> {
112112
return (
113113
<div className="simulator">
114114
<div className="file-selector">
115-
{this.state.running_file
115+
{this.state.running_file && this.state.play_button
116116
? CONSTANTS.CURRENTLY_RUNNING(this.state.running_file)
117-
: CONSTANTS.NO_FILES_AVAILABLE}
117+
: null}
118118
</div>
119119
<div className="microbit-container">
120120
<MicrobitImage

src/view/styles/Simulator.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
.file-selector {
2020
padding: 20px;
21+
min-height: 10px;
2122
}
2223

2324
.shake-pressed {

0 commit comments

Comments
 (0)