Skip to content

Commit

Permalink
Fix resize & fullscreen issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dhovart committed Sep 26, 2022
1 parent 73bd2bf commit 2b22f70
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"multer": "^1.4.2",
"mustache-express": "^1.3.0",
"neuroweblab": "github:neuroanatomy/neuroweblab",
"nwl-components": "1.1.4",
"nwl-components": "1.1.9",
"pako": "^1.0.11",
"passport": "^0.4.1",
"passport-github": "^1.1.0",
Expand Down
4 changes: 2 additions & 2 deletions view/brainbox/src/components/MRIPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
</div>
</div>
<div class="right">
<Editor title="MRI" :class="{reduced: !displayChat && !displayScript}">
<Editor title="MRI" :class="{fullscreen,reduced: !displayChat && !displayScript}" toolsMinHeight="340px">
<template v-slot:tools>
<Tools />
</template>
Expand Down Expand Up @@ -218,7 +218,7 @@ main {
position: relative;
}
.area.fullscreen {
:deep(.area.fullscreen) {
position: absolute;
width: 100%;
height: calc(100vh - 82px);
Expand Down
2 changes: 1 addition & 1 deletion view/brainbox/src/components/ProjectPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
@on-close="displayOntology = false"
@label-click="handleOntologyLabelClick"
/>
<Editor :title="title" :class="{reduced: !displayChat && !displayScript}">
<Editor :title="title" :class="{reduced: !displayChat && !displayScript}" toolsMinHeight="340px">
<template v-slot:tools>
<Tools />
</template>
Expand Down
5 changes: 4 additions & 1 deletion view/brainbox/src/components/Tools.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
</ButtonsGroup>
</Row>

<Row style="flex: 1; min-height:60px; margin: 0 0 30px" v-if="displayChat || displayScript">
<Row style="flex: 1; min-height:60px" v-if="displayChat || displayScript">
<div class="text">
<Chat
v-if="displayChat"
Expand Down Expand Up @@ -384,4 +384,7 @@ button img.icon {
width: 7px;
height: 7px;
}
.text .chat .messages {
min-height: 75px;
}
</style>

0 comments on commit 2b22f70

Please sign in to comment.