Skip to content

Commit

Permalink
fix panel contents covering header bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Coulson committed Jun 6, 2023
1 parent 036f13c commit 04f7c9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/editor/editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default class EditorV extends Vue {
mounted(): void {
// from https://css-tricks.com/how-to-detect-when-a-sticky-element-gets-pinned/
const observer = new IntersectionObserver(([e]) => e.target.classList.toggle('z-50', e.intersectionRatio < 1), {
const observer = new IntersectionObserver(([e]) => e.target.classList.toggle('z-40', e.intersectionRatio < 1), {
threshold: [1]
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/panels/panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div
:class="
config.type !== 'text'
? `sticky ${config.type === 'map' ? 'top-16' : 'top-8'} sm:self-start flex-2 order-1 sm:order-2 z-50`
? `sticky ${config.type === 'map' ? 'top-16' : 'top-8'} sm:self-start flex-2 order-1 sm:order-2 z-40`
: 'flex order-2 sm:order-1'
"
class="flex-col relative"
Expand Down

0 comments on commit 04f7c9f

Please sign in to comment.