Skip to content
Snippets Groups Projects
Unverified Commit 942aebed authored by Yusef Ouda's avatar Yusef Ouda Committed by GitHub
Browse files

fixes alignment of notifications on mobile to be centered (#3046)

parent 32d83044
No related branches found
No related tags found
No related merge requests found
......@@ -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,
}}
......
---
category: Bugfix
authors: [YusefOuda]
---
Fixes the alignment of notifications in mobile view
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment