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 dialogs interactions
thecodrrbf1002f3b6b3
diff --git a/apps/web/src/components/dialogs/confirm.js b/apps/web/src/components/dialogs/confirm.jsindex 6a2310217..d70ec6185 100644--- a/apps/web/src/components/dialogs/confirm.js+++ b/apps/web/src/components/dialogs/confirm.js@@ -10,7 +10,7 @@ function Confirm(props) {icon={props.icon}content={<Box my={1}>- <Text>{props.message}</Text>+ <Text textAlign="center">{props.message}</Text></Box>}positiveButton={{diff --git a/apps/web/src/components/dialogs/dialog.js b/apps/web/src/components/dialogs/dialog.jsindex 213eb03f7..65bfc9cf8 100644--- a/apps/web/src/components/dialogs/dialog.js+++ b/apps/web/src/components/dialogs/dialog.js@@ -13,7 +13,7 @@ export default class Dialog extends React.Component {<ModalisOpen={props.isOpen || false}shouldCloseOnOverlayClick={true}- onRequestClose={props.closeCick}+ onRequestClose={props.negativeButton.onClick}style={{content: {top: "50%",@@ -28,8 +28,8 @@ export default class Dialog extends React.Component {color: theme.colors.text,boxShadow: theme.shadows["3"],width: "25%",- paddingRight: 40,- paddingLeft: 40,+ paddingRight: 20,+ paddingLeft: 20,overflowY: "hidden"},overlay: {@@ -45,7 +45,7 @@ export default class Dialog extends React.Component {alignSelf="center"justifyContent="center"color="primary"- py={2}+ sx={{ paddingBottom: 2 }}><Box height={props.iconSize || 32}><props.icon size={props.iconSize || 32} />@@ -63,7 +63,7 @@ export default class Dialog extends React.Component {{props.content}<FlexflexDirection="row"- my={1}+ sx={{ marginTop: 3 }}justifyContent="center"alignItems="center">@@ -72,7 +72,7 @@ export default class Dialog extends React.Component {variant="primary"sx={{ opacity: props.positiveButton.disabled ? 0.7 : 1 }}mx={1}- width={"25%"}+ width={"50%"}disabled={props.positiveButton.disabled || false}onClick={props.positiveButton.onClick}>@@ -83,7 +83,7 @@ export default class Dialog extends React.Component {{props.negativeButton && (<RebassButtonvariant="secondary"- width={"25%"}+ width={"50%"}onClick={props.negativeButton.onClick}>{props.negativeButton.text || "Cancel"}diff --git a/apps/web/src/components/dialogs/logindialog.js b/apps/web/src/components/dialogs/logindialog.jsindex 1bd932355..49f43566e 100644--- a/apps/web/src/components/dialogs/logindialog.js+++ b/apps/web/src/components/dialogs/logindialog.js@@ -10,6 +10,8 @@ const LoginDialog = props => (title={"Login"}icon={Icon.LogIn}onCloseClick={props.onClose}+ negativeButton={{ onClick: props.onClose }}+ positiveButton={{ text: "Login" }}content={<Box my={1}><Input variant="default" placeholder="Email"></Input>@@ -18,10 +20,11 @@ const LoginDialog = props => (placeholder="Password"sx={{ marginTop: 2 }}></Input>- <Button width={1} my={2}>- Login- </Button>- <Flex flexDirection="row" justifyContent="space-between">+ <Flex+ flexDirection="row"+ justifyContent="space-between"+ sx={{ marginTop: 2 }}+ ><Button variant="links">Create a New Account</Button><Button variant="links" alignItems="right">Forgot password?diff --git a/apps/web/src/utils/theme.js b/apps/web/src/utils/theme.jsindex 093ef599e..d1d7b8bfc 100644--- a/apps/web/src/utils/theme.js+++ b/apps/web/src/utils/theme.js@@ -14,7 +14,7 @@ const colorsLight = primary =>hover: "#e0e0e0",fontSecondary: "white",text: "#000000",- overlay: "rgba(255, 255, 255, 0.75)",+ overlay: "rgba(0, 0, 0, 0.1)",secondary: "white"});const colorsDark = primary =>@@ -27,7 +27,7 @@ const colorsDark = primary =>hover: "#3b3b3b",fontSecondary: "#000",text: "#ffffff",- overlay: "rgba(0, 0, 0, 0.75)",+ overlay: "rgba(255, 255, 255, 0.5)",secondary: "black"});diff --git a/apps/web/yarn.lock b/apps/web/yarn.lockindex b257cb7d0..5269bdf53 100644--- a/apps/web/yarn.lock+++ b/apps/web/yarn.lock@@ -6825,7 +6825,7 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:"notes-core@https://github.com/thecodrr/notes-core.git":version "1.2.0"- resolved "https://github.com/thecodrr/notes-core.git#d26b1dd3c78b7cc845869d115895b101bf8d4fc2"+ resolved "https://github.com/thecodrr/notes-core.git#0ab48b67c1e2efc73e4be29a39d1c6d57e629e54"dependencies:fast-sort "^2.0.1"fuzzysearch "^1.0.3"