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: implement properties show/hide
thecodrrb13f1a12a764
diff --git a/apps/web/src/app.js b/apps/web/src/app.jsindex 7f05c6531..cb610969f 100644--- a/apps/web/src/app.js+++ b/apps/web/src/app.js@@ -78,7 +78,7 @@ function App() {borderRight: "1px solid",borderColor: "border",width: !getNavigationViewWidth()- ? ["100%", "40%", "15%"]+ ? ["100%", "40%", "23%"]: getNavigationViewWidth()}}flexDirection="column"diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.jsindex 15946bc16..ddfade0f2 100644--- a/apps/web/src/components/editor/index.js+++ b/apps/web/src/components/editor/index.js@@ -156,7 +156,7 @@ export default class Editor extends React.Component {render() {return (- <Flex width={["0%", "50%", "75%"]}>+ <Flex width={["0%", "50%", "77%"]}><FlexclassName="editor"flex="1 1 auto"diff --git a/apps/web/src/components/properties/index.js b/apps/web/src/components/properties/index.jsindex 23a1bfcd5..a0787ad00 100644--- a/apps/web/src/components/properties/index.js+++ b/apps/web/src/components/properties/index.js@@ -1,4 +1,4 @@-import React from "react";+import React, { useState } from "react";import * as Icon from "react-feather";import { Flex, Box, Text } from "rebass";import { Input } from "@rebass/forms";@@ -6,16 +6,57 @@ import CheckBox from "../checkbox";import { PinIcon } from "../icons";const Properties = props => {- return (+ const [visible, setVisible] = useState(false);+ return !visible ? (<Flex- sx={{ borderLeft: "1px solid", borderColor: "border", width: "25%" }}+ onClick={() => setVisible(true)}+ sx={{+ position: "absolute",+ top: "50%",+ right: 0,+ height: 60,+ color: "static",+ borderRadius: "100px 0px 0px 100px",+ cursor: "pointer"+ }}+ alignItems="center"+ justifyContent="center"+ bg="primary"+ >+ <Icon.ChevronLeft size={32} />+ </Flex>+ ) : (+ <Flex+ sx={{+ borderLeft: "1px solid",+ borderColor: "border",+ width: "20%"+ }}flexDirection="column"bg="shade"px={3}py={3}>- <Text variant="title" color="primary" my={2}>+ <Text+ variant="title"+ color="primary"+ my={2}+ alignItems="center"+ justifyContent="space-between"+ sx={{ display: "flex" }}+ >Properties+ <Text+ as="span"+ onClick={() => setVisible(false)}+ sx={{+ color: "red",+ height: 24,+ ":active": { color: "darkRed" }+ }}+ >+ <Icon.X />+ </Text></Text><CheckBoxchecked={props.pinned}