Skip to content

Commit

Permalink
Merge pull request #330 from France-ioi/mini-platform-tabs
Browse files Browse the repository at this point in the history
Display miniplatform tabs correctly
  • Loading branch information
SebastienTainon authored Aug 11, 2023
2 parents f0f2a69 + 25a468d commit 8ea07e2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions frontend/stepper/js/BlocklyEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export const BlocklyEditor = (props: BlocklyEditorProps) => {

const resize = () => {
log.getLogger('editor').debug('[blockly.editor] resize');
if (context && context.blocklyHelper) {
context.blocklyHelper.unloadLevel();
}
onLoad();
};

const onBlocklyEvent = (event) => {
Expand Down
14 changes: 13 additions & 1 deletion frontend/task/task.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,20 @@ html {

html:not([active-view="task"]) {
height: 100%;
body, #react-container {
body {
height: 100%;
display: flex;
flex-direction: column;
}
#react-container {
height: 100%;
min-height: 0;
}
#choose-view {
margin-top: 0 !important;
> * {
margin: 3px 0;
}
}
body {
overflow: hidden;
Expand Down

0 comments on commit 8ea07e2

Please sign in to comment.