Skip to content

Commit

Permalink
fix(debug): Stop panel intercepting clicks in transparent parts
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Aug 26, 2021
1 parent 0f7ca36 commit d2b611d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/client/debug/Debug.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
}
.closer {
left: 175px;
left: -326px;
}
/* Rotate chevron icon on toggle. */
Expand Down
12 changes: 4 additions & 8 deletions src/client/debug/Menu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,16 @@

<style>
.menu {
/**
* 1. Rotate menu 90 degrees, so it runs vertically.
* 2. Move menu up by height + border.
* Because of the rotation, this is equivalent to moving left.
* 3. Move menu left (equivalent to down), to leave space above it for show/hide toggle.
*/
display: flex;
margin-top: 43px;
flex-direction: row-reverse;
border: 1px solid #ccc;
border-radius: 5px 5px 0 0;
height: 25px;
line-height: 25px;
transform-origin: top right;
transform: /* 1 */ rotate(-90deg) /* 2 */ translateY(-27px) /* 3 */ translateX(-70px);
margin-right: -500px;
transform-origin: bottom right;
transform: rotate(-90deg) translate(0, -500px);
}
.menu-item {
Expand Down

0 comments on commit d2b611d

Please sign in to comment.