Skip to content

Commit

Permalink
Merge pull request #4360 from serlo/fix/modal-in-moodle-navigation-bar
Browse files Browse the repository at this point in the history
fix(editor): Modal in moodle
  • Loading branch information
CodingDive authored Dec 20, 2024
2 parents 367c832 + e6ba12f commit 9c6c86f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/editor/src/editor-ui/editor-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ export function EditorModal({
)
}

// The moodle navigation bar has a z-index of 1030... We are using 1040 to make
// sure the modal can be on top and is not cut off
export const defaultModalOverlayStyles = cn(
'fixed bottom-0 left-0 right-0 top-0 z-[101] bg-white bg-opacity-75'
'fixed bottom-0 left-0 right-0 top-0 z-[1040] bg-white bg-opacity-75'
)

0 comments on commit 9c6c86f

Please sign in to comment.