Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: toast is not visible on mobile

thecodrra4cee00590c7
diff --git a/apps/web/src/utils/toast.js b/apps/web/src/utils/toast.js
index fd56eb07d..2291e6c4e 100644
--- a/apps/web/src/utils/toast.js
+++ b/apps/web/src/utils/toast.js
@@ -4,7 +4,6 @@ import { Button, Flex, Text } from "rebass";
import ThemeProvider from "../components/theme-provider";
import * as Icon from "../components/icons";
import { toTitleCase } from "./string";
-import { isMobile } from "./dimensions";
/**
*
@@ -16,7 +15,7 @@ function showToast(type, message, actions) {
return CogoToast[type](
<ToastContainer type={type} message={message} actions={actions} />,
{
- position: isMobile() ? "bottom-center" : "top-right",
+ position: "top-right",
hideAfter: actions ? 5 : type === "error" ? 5 : 3,
bar: { size: "0px" },
renderIcon: () => {