-
Notifications
You must be signed in to change notification settings - Fork 27.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DevOverlay] Fix floating header invisble on small screen (#74886)
This PR fixed the floating header being invisible when the screen height was small. ### Before  ### After  Closes NDX-661
- Loading branch information
1 parent
5c3c786
commit 2398bc6
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...components/react-dev-overlay/_experimental/internal/components/Errors/overlay/overlay.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { noop as css } from '../../../helpers/noop-template' | ||
import { Overlay, type OverlayProps } from '../../Overlay/Overlay' | ||
|
||
export function ErrorOverlayOverlay({ children, ...props }: OverlayProps) { | ||
return <Overlay {...props}>{children}</Overlay> | ||
} | ||
|
||
export const OVERLAY_STYLES = css` | ||
[data-nextjs-dialog-overlay] { | ||
top: var(--size-8_5); | ||
} | ||
` |