Skip to content

Commit

Permalink
Fix resize issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dhovart committed Sep 26, 2022
1 parent 83ccaf3 commit d36f160
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/views/scripts/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="300px">
<template v-slot:tools>
<Tools />
</template>
Expand Down
24 changes: 17 additions & 7 deletions app/views/scripts/components/Tools.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
</Button>
</Row>
<Row
style="flex: 1; min-height: 60px; margin: 0 0 30px"
style="flex: 1; min-height: 40px"
v-if="displayChat || displayScript"
>
<div class="text">
Expand Down Expand Up @@ -260,8 +260,6 @@ const toggleChat = () => {
if (displayChat.value) {
displayScript.value = false;
}
if (!displayChat.value && !displayScript.value) {
}
};
const toggleScript = () => {
Expand All @@ -280,7 +278,6 @@ const selectTool = (event) => {
Microdraw.toolSelection(event.currentTarget.id);
};
const sendChatMessage = (message) => {
Microdraw.sendChatMessage(message);
};
Expand All @@ -296,8 +293,9 @@ const sendChatMessage = (message) => {
padding: 1px 9px !important;
}
button, .group {
border: thin solid #777;
}
border: thin solid #777;
}
button.pressed {
background: #777;
}
Expand All @@ -313,4 +311,16 @@ button img.icon {
.text {
width: 100%;
}
</style>
</style>
<style>
.range-slider button {
border: thin solid #777;
}
</style>
<style>
#logScript {
height: calc(100% - 22px);
}
</style>


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 @@ -30,7 +30,7 @@
"multer": "^1.4.1",
"mustache-express": "latest",
"neuroweblab": "github:neuroanatomy/neuroweblab",
"nwl-components": "1.1.6",
"nwl-components": "1.1.9",
"passport": "^0.4.0",
"passport-github": "latest",
"passport-local": "^1.0.0",
Expand Down

0 comments on commit d36f160

Please sign in to comment.