Skip to content

Commit

Permalink
Add opacity-based visibility toggle for MiniPaper
Browse files Browse the repository at this point in the history
  • Loading branch information
eiresendez committed Aug 21, 2023
1 parent 996f580 commit 84e0c4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/railBottom/RailBottom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
ref="railLeftBox"
>
<MiniPaperControl
v-show="showComponent"
:class="{'hidden-opacity': showComponent === false}"
:paper-manager="paperManager"
:graph="graph"
/>
Expand Down
7 changes: 7 additions & 0 deletions src/components/railBottom/railBottom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@
overflow-x: hidden;
}
}

.hidden-opacity {
opacity: 0;
visibility: hidden;
position: absolute;
pointer-events: none;
}

0 comments on commit 84e0c4a

Please sign in to comment.