Skip to content

Commit

Permalink
Merge pull request #59 from agileseason/58-add-transparent-layout-for…
Browse files Browse the repository at this point in the history
…-issue-modal

Add transparent overlay for issue modal position right
  • Loading branch information
blackchestnut committed Oct 24, 2021
2 parents cde71d6 + 1521541 commit f4a9fe6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/board/column.vue
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ export default {
position: fixed
top: 0
width: 100vw
z-index: 1
z-index: 3 // z-index: 2 on board/issue
.select-settings
overflow: hidden
position: absolute
right: 0
top: 32px
z-index: 2
z-index: 4
.item
cursor: pointer
Expand Down
2 changes: 2 additions & 0 deletions src/components/board/issue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ export default {
border: 1px solid #E8EAF6
overflow: hidden
padding: 8px
position: relative
z-index: 2
&:not(.read-only)
cursor: pointer
Expand Down
4 changes: 2 additions & 2 deletions src/components/dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default {
position: absolute
text-align: left
width: 100%
z-index: 3 // z-index: 2 on the issue progress - https://github.com/agileseason/agileseason/issues/19
z-index: 4
.title
color: #fff
Expand All @@ -56,5 +56,5 @@ export default {
position: fixed
top: 0
width: 100vw
z-index: 1
z-index: 3 // z-index: 2 on board/issue
</style>
12 changes: 10 additions & 2 deletions src/components/modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ export default {
position: fixed
top: 0
width: 100vw
z-index: 4
z-index: 3
.modal-overlay-blank
height: 100vh
left: 0
position: fixed
top: 0
width: 100vw
z-index: 1 // z-index: 2 on board/issue
.modal
background-color: #fff
Expand All @@ -33,7 +41,7 @@ export default {
position: absolute
top: 36px
width: 80%
z-index: 5
z-index: 4
transform: translate(-50%, 2000px)
Expand Down
4 changes: 4 additions & 0 deletions src/views/board.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
v-if='isLoaded && isModalRight'
v-show='isModalOpen'
>
<div
class='modal-overlay-blank'
@click.self='backToBoard'
/>
<router-view v-slot='{ Component }'>
<transition name='slide' :duration='200'>
<component :is='Component' />
Expand Down

0 comments on commit f4a9fe6

Please sign in to comment.