mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(web/notifications): bottom center position (#33)
This commit is contained in:
@@ -26,6 +26,7 @@ export const debugCustomNotification = () => {
|
|||||||
title: 'Error',
|
title: 'Error',
|
||||||
description: 'Notification description',
|
description: 'Notification description',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
|
position: "bottom"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ const getAnimation = (visible: boolean, position: string) => {
|
|||||||
animation = { from: 'X(0px)', to: 'X(-100%)' };
|
animation = { from: 'X(0px)', to: 'X(-100%)' };
|
||||||
} else if (position === 'top-center') {
|
} else if (position === 'top-center') {
|
||||||
animation = { from: 'Y(0px)', to: 'Y(-100%)' };
|
animation = { from: 'Y(0px)', to: 'Y(-100%)' };
|
||||||
} else if (position === 'bottom') {
|
} else if (position === 'bottom-center') {
|
||||||
animation = { from: 'Y(0px)', to: 'Y(100%)' };
|
animation = { from: 'Y(0px)', to: 'Y(100%)' };
|
||||||
} else {
|
} else {
|
||||||
animation = { from: 'X(0px)', to: 'X(100%)' };
|
animation = { from: 'X(0px)', to: 'X(100%)' };
|
||||||
|
|||||||
Reference in New Issue
Block a user