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
ui: make ui more consistent
thecodrr98b0dc121f5a
diff --git a/apps/web/src/app.js b/apps/web/src/app.jsindex 3c1d3c60a..bedd64840 100644--- a/apps/web/src/app.js+++ b/apps/web/src/app.js@@ -67,8 +67,8 @@ function App() {sx={{ borderRight: "1px solid", borderColor: "border" }}flexDirection="column"flex="1 1 auto"- px={3}- py={3}+ px={2}+ py={2}width={["100%", "40%", "13%"]}/><Editor />diff --git a/apps/web/src/components/editor/editor.css b/apps/web/src/components/editor/editor.cssindex 9299f3ed3..96f70ba14 100644--- a/apps/web/src/components/editor/editor.css+++ b/apps/web/src/components/editor/editor.css@@ -32,4 +32,5 @@border: none !important;border-bottom: 1px solid #f0f0f0 !important;border-top: 1px solid #f0f0f0 !important;+ padding: 5px !important;}diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.jsindex b1356e842..7b2732071 100644--- a/apps/web/src/components/editor/index.js+++ b/apps/web/src/components/editor/index.js@@ -150,8 +150,8 @@ const Editor = props => {fontSize="heading"display={["none", "flex", "flex"]}sx={{ borderWidth: 0, ":focus": { outline: "none" } }}- px={3}- py={3}+ px={2}+ py={2}onChange={e => (title = e.target.value)}/><Box id="toolbar" display={["none", "flex", "flex"]}></Box>diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.jsindex 0713e727e..0571f1e3a 100644--- a/apps/web/src/components/list-item/index.js+++ b/apps/web/src/components/list-item/index.js@@ -43,7 +43,7 @@ const ListItem = props => (display={props.info ? "flex" : "none"}variant="body"fontSize={12}- color="foreground"+ color="fontTertiary">{props.info}</Text>@@ -59,7 +59,7 @@ const ListItem = props => (style={{ marginRight: -5 }}/></DropdownTrigger>- <DropdownContent style={{ zIndex: 999, marginLeft: -85 }}>+ <DropdownContent style={{ zIndex: 999, marginLeft: -110 }}><MenudropdownRef={props.dropdownRefs[props.index]}menuItems={props.menuItems}diff --git a/apps/web/src/components/menu/index.js b/apps/web/src/components/menu/index.jsindex 31e8d6c5a..3ec647fa7 100644--- a/apps/web/src/components/menu/index.js+++ b/apps/web/src/components/menu/index.js@@ -4,8 +4,17 @@ import { SHADOW } from "../../theme";function Menu(props) {return (- <Flex bg="background" py={1} sx={{ borderRadius: "default", boxShadow: 2 }}>- <Box>+ <Flex+ bg="navbg"+ py={1}+ sx={{+ position: "relative",+ borderRadius: "default",+ boxShadow: 2,+ width: 120+ }}+ >+ <Box width="100%" bg="navbg">{props.menuItems.map(item => (<Flexkey={item.title}@@ -30,7 +39,6 @@ function Menu(props) {}}}>- <item.icon size={15} strokeWidth={1.5} /><TextclassName="unselectable"as="span"diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.jsindex 79856e9a9..4d7272211 100644--- a/apps/web/src/components/note/index.js+++ b/apps/web/src/components/note/index.js@@ -7,11 +7,12 @@ import ListItem from "../list-item";const dropdownRefs = [];const menuItems = [- { title: "Favorite", icon: Icon.Heart },- { title: "Share", icon: Icon.Share2 },+ { title: "Move" },+ { title: "Pin" },+ { title: "Favorite" },+ { title: "Share" },{title: "Delete",- icon: Icon.Trash,color: "red",onClick: note => {ev.emit("onClearNote", note.dateCreated);diff --git a/apps/web/src/components/notebook/index.js b/apps/web/src/components/notebook/index.jsindex d9d68a046..1a90e645e 100644--- a/apps/web/src/components/notebook/index.js+++ b/apps/web/src/components/notebook/index.js@@ -48,9 +48,7 @@ const Notebook = ({ item, index, onClick, onTopicClick }) => {info={<Text>{new Date(notebook.dateCreated).toDateString().substring(4)}- <Text as="span" color="text">- {" • " + notebook.totalNotes} Notes- </Text>+ <Text as="span">{" • " + notebook.totalNotes} Notes</Text></Text>}dropdownRefs={dropdownRefs}diff --git a/apps/web/src/theme.js b/apps/web/src/theme.jsindex 428b806e2..645426af3 100644--- a/apps/web/src/theme.js+++ b/apps/web/src/theme.js@@ -10,6 +10,7 @@ const colorsLight = makeTheme({border: "#f0f0f0",hover: "#e0e0e0",fontSecondary: "white",+ fontTertiary: "gray",text: "black",overlay: "rgba(255, 255, 255, 0.75)"});@@ -30,8 +31,9 @@ const shadowsDark = {};const shadowsLight = {1: "0 0 20px 0px #1790F3aa",- 2: "0 0 8px 0px #aaaaaa44",- 3: "0 0 20px 0px #aaaaaa77"+ 2: "0 0 8px 0px #00000047",+ 3: "0 0 20px 0px #aaaaaa77",+ 4: "0 0 5px 0px #00000017"};export default {@@ -83,7 +85,7 @@ export default {variant: "forms.default",":focus": {outline: "none",- boxShadow: 2+ boxShadow: 4}}},@@ -153,6 +155,7 @@ function makeTheme({border,hover,fontSecondary,+ fontTertiary,text,overlay}) {@@ -166,6 +169,7 @@ function makeTheme({border,hover,fontSecondary,+ fontTertiary,transparent: "#00000000",text,overlaydiff --git a/apps/web/src/views/Home.js b/apps/web/src/views/Home.jsindex c9d47eb6c..7b4bb88ba 100644--- a/apps/web/src/views/Home.js+++ b/apps/web/src/views/Home.js@@ -38,7 +38,7 @@ function Home() {groupCounts={notes.groupCounts}group={index => (<Box bg="background">- <Text variant="heading" color="primary" fontSize={13}>+ <Text variant="heading" color="primary" fontSize={15}>{notes.groups[index].title}</Text></Box>