mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-29 02:54:09 -05:00
Fix: display notifications below modal windows (#5165)
This commit is contained in:
committed by
GitHub
parent
100711ccfb
commit
39cd71aa48
@@ -22,6 +22,7 @@ import { View } from '@actual-app/components/view';
|
||||
import { css } from '@emotion/css';
|
||||
|
||||
import { Link } from './common/Link';
|
||||
import { MODAL_Z_INDEX } from './common/Modal';
|
||||
|
||||
import {
|
||||
removeNotification,
|
||||
@@ -313,7 +314,7 @@ export function Notifications({ style }: { style?: CSSProperties }) {
|
||||
top: notificationInset?.top,
|
||||
right: notificationInset?.right || 13,
|
||||
left: notificationInset?.left || (isNarrowWidth ? 13 : undefined),
|
||||
zIndex: 10000,
|
||||
zIndex: MODAL_Z_INDEX - 1,
|
||||
...style,
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -33,6 +33,8 @@ import { AutoTextSize } from 'auto-text-size';
|
||||
|
||||
import { useModalState } from '@desktop-client/hooks/useModalState';
|
||||
|
||||
export const MODAL_Z_INDEX = 3000;
|
||||
|
||||
type ModalProps = ComponentPropsWithRef<typeof ReactAriaModal> & {
|
||||
name: string;
|
||||
isLoading?: boolean;
|
||||
@@ -80,7 +82,7 @@ export const Modal = ({
|
||||
style={{
|
||||
position: 'fixed',
|
||||
inset: 0,
|
||||
zIndex: 3000,
|
||||
zIndex: MODAL_Z_INDEX,
|
||||
fontSize: 14,
|
||||
willChange: 'transform',
|
||||
// on mobile, we disable the blurred background for performance reasons
|
||||
|
||||
Reference in New Issue
Block a user