Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ui: fix up all the paddings

thecodrra08b3e71b2ed
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index 60bbe2f22..3a37752c7 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -156,7 +156,6 @@ const Editor = props => {
display={["none", "flex", "flex"]}
sx={{ borderWidth: 0, ":focus": { outline: "none" } }}
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.js
index 288838ed6..4d391da0d 100644
--- a/apps/web/src/components/list-item/index.js
+++ b/apps/web/src/components/list-item/index.js
@@ -17,9 +17,9 @@ const ListItem = props => (
justifyContent="space-between"
py={1}
bg={props.pinned ? "#1790F310" : "background"}
+ px={3}
sx={{
position: "relative",
- borderRadius: "default",
marginBottom: 2,
marginTop: props.pinned ? 4 : 0,
borderBottom: "1px solid",
@@ -39,6 +39,7 @@ const ListItem = props => (
top: -15,
left: 0
}}
+ mx={1}
alignItems="center"
justifyContent="center"
>
diff --git a/apps/web/src/components/search/index.js b/apps/web/src/components/search/index.js
index 38b4fd731..c28d0821b 100644
--- a/apps/web/src/components/search/index.js
+++ b/apps/web/src/components/search/index.js
@@ -6,6 +6,7 @@ import theme from "../../theme";
import "./search.css";
const Search = props => (
<Flex
+ px={3}
flexDirection="row"
justifyContent="center"
alignItems="center"
@@ -24,7 +25,7 @@ const Search = props => (
sx={{
position: "absolute",
right: 0,
- marginRight: 10,
+ marginRight: 20,
color: theme.colors["hover"],
height: 24
}}
diff --git a/apps/web/src/navigation/index.js b/apps/web/src/navigation/index.js
index 12b240f98..1f3c57c7b 100644
--- a/apps/web/src/navigation/index.js
+++ b/apps/web/src/navigation/index.js
@@ -37,7 +37,7 @@ export const routes = {
settings: {
key: "settings",
title: "Settings",
- component:Settings,
+ component: Settings,
icon: Icon.Settings,
bottom: true
}
@@ -100,7 +100,7 @@ function ThemedComponent(props) {
}, [props.route.title]);
return (
<ThemeProvider theme={theme}>
- <Flex alignItems="center">
+ <Flex alignItems="center" px={3}>
<Box
onClick={backAction}
display={canGoBack ? "flex" : "none"}
diff --git a/apps/web/src/views/Home.js b/apps/web/src/views/Home.js
index 9c662b2f8..451434917 100644
--- a/apps/web/src/views/Home.js
+++ b/apps/web/src/views/Home.js
@@ -38,13 +38,17 @@ function Home() {
overflowX: "hidden"
}}
groupCounts={notes.groupCounts}
- group={groupIndex => (
- <Box bg="background">
- <Text variant="heading" color="primary" fontSize={15}>
- {notes.groups[groupIndex].title}
- </Text>
- </Box>
- )}
+ group={groupIndex =>
+ notes.groups[groupIndex].title == "Pinned" ? (
+ <Box px={3} bg="background" py={1} />
+ ) : (
+ <Box px={3} bg="background">
+ <Text variant="heading" color="primary" fontSize={15}>
+ {notes.groups[groupIndex].title}
+ </Text>
+ </Box>
+ )
+ }
item={(index, groupIndex) => (
<Note index={index} item={notes.items[index]} />
)}