A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: improve toast ui on mobile
thecodrrdb748832681e
diff --git a/apps/web/src/app.css b/apps/web/src/app.cssindex 3f8287ab8..d359e6f47 100644--- a/apps/web/src/app.css+++ b/apps/web/src/app.css@@ -11,3 +11,7 @@*::-moz-focus-inner {border: 0;}++.ct-toast {+ padding: 0px 10px !important;+}diff --git a/apps/web/src/utils/toast.js b/apps/web/src/utils/toast.jsindex 936daba87..0681b6be9 100644--- a/apps/web/src/utils/toast.js+++ b/apps/web/src/utils/toast.js@@ -4,6 +4,7 @@ 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";/***@@ -15,7 +16,7 @@ function showToast(type, message, actions) {return CogoToast[type](<ToastContainer type={type} message={message} actions={actions} />,{- position: "top-right",+ position: isMobile() ? "bottom-center" : "top-right",hideAfter: actions ? 5 : 3,bar: { size: "0px" },renderIcon: () => {