Skip to content

Commit

Permalink
NN-427 Add function to collapse the enrichment graph tools
Browse files Browse the repository at this point in the history
  • Loading branch information
TripZz committed Jan 7, 2024
1 parent 78a629e commit 388c6ca
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 17 deletions.
Binary file added frontend/src/assets/pathwaybar/fullscreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion frontend/src/components/enrichment/PathwayList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export default {


<style>
#pathways-list {
.pathways #pathways-list {
width: 32.83%;
height: 96.92%;
position: absolute;
Expand All @@ -302,6 +302,20 @@ export default {
}
.pathwaybar-small #pathways-list {
width: 99%;
height: 96.92%;
position: absolute;
top:50%;
transform: translateY(-50%);
margin-left: 0.5%;
border-radius: 5px;
z-index: 997;
cursor: default;
font-family: 'ABeeZee', sans-serif;
}
.pathway-search {
width: 37.54%;
height: 11.16%;
Expand Down
39 changes: 23 additions & 16 deletions frontend/src/components/enrichment/PathwayMenu.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<template>
<div class="pathways" :class="{ show_pathways_menu: pane_hidden === true }">
<div :class="{ 'pathwaybar-small': pane_hidden === true, 'pathways': pane_hidden === false }">
<div class="minimize-bar" v-on:click="pane_hidden = !pane_hidden" >
<img src="@/assets/pathwaybar/arrows.png" :style="{ transform: pane_hidden ? 'rotate(-90deg)' : 'rotate(90deg)' }">
<img src="@/assets/pathwaybar/fullscreen.png">
</div>
<div class="pathwaybar" v-show="pane_hidden === false">
<div class="pathwaybar">
<PathwayList
:gephi_data='gephi_data'
:terms='terms'
:await_load = 'await_load'
@favourite_pathways_changed = 'favourite_pathways = $event'
@filtered_terms_changed = 'filtered_terms = $event'
></PathwayList>
<PathwaySet
<PathwaySet v-show="pane_hidden === false"
:gephi_data='gephi_data'
:api='api'
></PathwaySet>
<PathwayTools
<PathwayTools v-show="pane_hidden === false"
:gephi_data='gephi_data'
:filtered_terms='filtered_terms'
:favourite_pathways='favourite_pathways'
></PathwayTools>
<img id="pathway-bg" src="@/assets/pathwaybar/background-dna.png">
<img v-show="pane_hidden === false" id="pathway-bg" src="@/assets/pathwaybar/background-dna.png">
</div>
</div>
</template>
Expand Down Expand Up @@ -119,14 +119,18 @@ export default {
.minimize-bar {
width: 100%;
height: 9.41%;
position: fixed;
position: absolute;
flex-shrink: 0;
border-radius: 5px 5px 0px 0px;
backdrop-filter: blur(7.5px);
background: #D9D9D9;
text-align: center;
transition: transform 330ms ease-in-out;
}
.minimize-bar img {
.minimize-bar img{
position: absolute;
top: 35%;
right: 0.7vw;
width: 0.7vw;
height: 0.7vw;
flex-shrink: 0;
Expand All @@ -135,13 +139,22 @@ export default {
.pathwaybar {
width: 100%;
height: 90.59%;
position: fixed;
position: absolute;
top: 9.41%;
flex-shrink: 0;
border-radius: 0px 0px 5px 5px;
background: rgba(222, 222, 222, 0.61);
backdrop-filter: blur(7.5px);
}
.pathwaybar-small{
z-index: 999;
position: absolute;
width: 32.83%;
height: 27.2%;
top: 70.7%;
left: 3.515%;
transition: transform 330ms ease-in-out;
}
.pathwaybar #pathway-bg {
width: 20%;
height: 100%;
Expand All @@ -150,11 +163,5 @@ export default {
top:50%;
transform: translateY(-50%);
}
.show_pathways_menu {
transform: translate(-50%,98%);
width: 20%;
transition: transform 330ms ease-in-out;
transition: width 900ms ease-in-out;
}
</style>

0 comments on commit 388c6ca

Please sign in to comment.