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: minor fixes
thecodrr98d51cecf9b6
diff --git a/apps/web/src/components/list-container/index.js b/apps/web/src/components/list-container/index.jsindex c23dff686..30d000d81 100644--- a/apps/web/src/components/list-container/index.js+++ b/apps/web/src/components/list-container/index.js@@ -35,22 +35,24 @@ function ListContainer(props) {<>{!props.noSearch && <Search type={props.type} />}<Flex variant="columnFill" mt={2}>- {props.children || props.items.length > 0 ? (- <List- style={{- width: "100%",- flex: "1 1 auto",- height: "auto",- overflowX: "hidden",- }}- totalCount={props.items.length}- item={(index) => {- const item = props.items[index];- if (!item) return null;- return props.item(index, item);- }}- />- ) : null}+ {props.children+ ? props.children+ : props.items.length > 0 && (+ <List+ style={{+ width: "100%",+ flex: "1 1 auto",+ height: "auto",+ overflowX: "hidden",+ }}+ totalCount={props.items.length}+ item={(index) => {+ const item = props.items[index];+ if (!item) return null;+ return props.item(index, item);+ }}+ />+ )}</Flex></>)}diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.jsindex 8abbee56b..d0439bc7b 100644--- a/apps/web/src/components/note/index.js+++ b/apps/web/src/components/note/index.js@@ -91,12 +91,13 @@ function menuItems(note, context) {}function Note(props) {- const { item, index } = props;+ const { item, index, pinnable } = props;const note = item;const selectedNote = useStore((store) => store.selectedNote);// we will never be opening a note side-by-side in Mobileconst isOpened = isMobile() ? false : selectedNote === note.id;const theme = useTheme();+return (<ListItemselectable@@ -154,7 +155,7 @@ function Note(props) {)}</Flex>}- pinned={props.pinnable && note.pinned}+ pinned={pinnable && note.pinned}menuData={note}menuItems={menuItems(note, props.context)}/>diff --git a/apps/web/src/components/properties/index.js b/apps/web/src/components/properties/index.jsindex 63396ad3e..1118eda22 100644--- a/apps/web/src/components/properties/index.js+++ b/apps/web/src/components/properties/index.js@@ -149,7 +149,7 @@ function Properties() {/><FlexfontSize="body"- sx={{ marginBottom: 2 }}+ sx={{ marginTop: 2 }}alignItems="center"justifyContent="flex-start"flexWrap="wrap"diff --git a/apps/web/src/theme/colorscheme/light.js b/apps/web/src/theme/colorscheme/light.jsindex 765e0e95a..6ec517823 100644--- a/apps/web/src/theme/colorscheme/light.js+++ b/apps/web/src/theme/colorscheme/light.js@@ -8,7 +8,7 @@ class LightColorSchemeFactory {background: "white",accent: "white",bgSecondary: "#f0f0f0",- border: "#e0e0e0",+ border: "#f0f0f0",hover: "#e0e0e0",fontSecondary: "white",text: "#000000",@@ -16,7 +16,7 @@ class LightColorSchemeFactory {secondary: "white",icon: "#3b3b3b",placeholder: hexToRGB("#000000", 0.6),- ...new StaticColorSchemeFactory(accent)+ ...new StaticColorSchemeFactory(accent),};}}