diff --git a/packages/desktop-client/src/components/Notifications.tsx b/packages/desktop-client/src/components/Notifications.tsx index bb2a45be2e0814f9a885039ef53a4aba5155fdac..1ed01bdce3f09e4e25c1ae937005fa64191c811c 100644 --- a/packages/desktop-client/src/components/Notifications.tsx +++ b/packages/desktop-client/src/components/Notifications.tsx @@ -13,6 +13,7 @@ import type { NotificationWithId } from 'loot-core/src/client/state-types/notifi import { useActions } from '../hooks/useActions'; import { AnimatedLoading } from '../icons/AnimatedLoading'; import { SvgDelete } from '../icons/v0'; +import { useResponsive } from '../ResponsiveProvider'; import { styles, theme, type CSSProperties } from '../style'; import { Button, ButtonWithLoading } from './common/Button'; @@ -245,6 +246,7 @@ function Notification({ export function Notifications({ style }: { style?: CSSProperties }) { const { removeNotification } = useActions(); + const { isNarrowWidth } = useResponsive(); const notifications = useSelector( (state: State) => state.notifications.notifications, ); @@ -254,6 +256,7 @@ export function Notifications({ style }: { style?: CSSProperties }) { position: 'fixed', bottom: 20, right: 13, + left: isNarrowWidth ? 13 : undefined, zIndex: 10000, ...style, }} diff --git a/upcoming-release-notes/3046.md b/upcoming-release-notes/3046.md new file mode 100644 index 0000000000000000000000000000000000000000..181ed9cd2a7e513f2c168aebf368e7885525628a --- /dev/null +++ b/upcoming-release-notes/3046.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [YusefOuda] +--- + +Fixes the alignment of notifications in mobile view \ No newline at end of file