π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[web] Fix notifications to bottom placement
AswinAsok84b13a18f93b
diff --git a/web/apps/ensu/src/components/chat/ChatDialogs.tsx b/web/apps/ensu/src/components/chat/ChatDialogs.tsxindex 1971944999..4a8d88d2e3 100644--- a/web/apps/ensu/src/components/chat/ChatDialogs.tsx+++ b/web/apps/ensu/src/components/chat/ChatDialogs.tsx@@ -1740,7 +1740,6 @@ export const ChatDialogs = memo(attributes={chatNotification}autoHideDuration={null}horizontal={isSmall ? "left" : "right"}- vertical="bottom"sx={{width: "fit-content",maxWidth: "min(360px, 100vw)",diff --git a/web/packages/base/components/Notification.tsx b/web/packages/base/components/Notification.tsxindex af49a9ee48..ac8d68d12a 100644--- a/web/packages/base/components/Notification.tsx+++ b/web/packages/base/components/Notification.tsx@@ -38,7 +38,6 @@ type NotificationProps = ModalVisibilityProps & {attributes: NotificationAttributes | undefined;keepOpenOnClick?: boolean;horizontal?: "left" | "right";- vertical?: "top" | "bottom";autoHideDuration?: number | null;sx?: SxProps<Theme>;};@@ -62,7 +61,6 @@ export const Notification: React.FC<NotificationProps> = ({open,onClose,horizontal = "right",- vertical = "bottom",autoHideDuration = 3000,sx,attributes,@@ -161,15 +159,13 @@ export const Notification: React.FC<NotificationProps> = ({onClose={(_, reason) => {if (reason === "timeout") onClose();}}- anchorOrigin={{ horizontal, vertical }}+ anchorOrigin={{ horizontal, vertical: "bottom" }}sx={[(theme) => ({width: "min(340px, calc(100vw - 32px))",left: horizontal === "left" ? { xs: 16, sm: 24 } : "auto",right: horizontal === "right" ? { xs: 16, sm: 24 } : "auto",- ...(vertical === "bottom"- ? { bottom: { xs: 16, sm: 24 } }- : { top: { xs: 16, sm: 24 } }),+ bottom: { xs: 16, sm: 24 },borderRadius: "24px",border: "1px solid",borderColor: "rgba(0, 0, 0, 0.06)",