Skip to content

Commit 82555a6

Browse files
authored
Merge pull request #187 from RaspberryPiFoundation/player-height-tweak
Tweaking height proportion of visual and text output
2 parents 5616dc7 + 0a046ef commit 82555a6

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/components/Editor/Runners/PythonRunner/PythonRunner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ const PythonRunner = () => {
295295
<div className={`pythonrunner-container`}>
296296
{ isEmbedded ?
297297
<>
298-
<div className='output-panel' style={!hasVisualOutput ? {display: 'none'} : {}}>
298+
<div className='output-panel output-panel--visual' style={!hasVisualOutput ? {display: 'none'} : {}}>
299299
<Tabs forceRenderTabPanel={true}>
300300
<TabList>
301301
<Tab key={0}>Visual Output</Tab>
@@ -305,7 +305,7 @@ const PythonRunner = () => {
305305
</TabPanel>
306306
</Tabs>
307307
</div>
308-
<div className='output-panel'>
308+
<div className='output-panel output-panel--text'>
309309
<Tabs forceRenderTabPanel={true}>
310310
<TabList>
311311
<Tab key={0}>Text Output</Tab>

src/components/Editor/Runners/PythonRunner/PythonRunner.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@
5555
}
5656

5757
.output-panel {
58-
flex: 1;
5958
display: flex;
6059
overflow: hidden;
60+
&--text {
61+
flex: 3;
62+
}
63+
64+
&--visual {
65+
flex: 7;
66+
}
6167
}

0 commit comments

Comments
 (0)