Skip to content

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

ui: decrease sizing of everything

thecodrr5102f2767978
diff --git a/apps/web/src/app.js b/apps/web/src/app.js
index 3b579fa88..097170d6e 100644
--- a/apps/web/src/app.js
+++ b/apps/web/src/app.js
@@ -44,7 +44,7 @@ const NavMenuItem = props => {
sx={{ marginLeft: [2, 0, 0] }}
>
<props.item.icon
- size={24}
+ size={18}
strokeWidth={props.selected ? 2 : 1.3}
style={{ marginRight: 2 }}
fill={fill}
@@ -101,8 +101,8 @@ function App() {
zIndex: 999,
borderRight: "1px solid",
borderRightColor: "primary",
- minWidth: ["85%", 60, 60],
- maxWidth: ["85%", 60, 60],
+ minWidth: ["85%", 50, 50],
+ maxWidth: ["85%", 50, 50],
display: [sideMenuOpen ? "flex" : "none", "flex", "flex"],
position: ["absolute", "relative", "relative"],
overflow: "scroll",
diff --git a/apps/web/src/components/button/index.js b/apps/web/src/components/button/index.js
index 8dbe92764..3489e3f44 100644
--- a/apps/web/src/components/button/index.js
+++ b/apps/web/src/components/button/index.js
@@ -8,9 +8,10 @@ const Button = props => {
return (
<Flex
bg="primary"
- width={props.width || "full"}
- py={3}
- px={3}
+ width={props.width}
+ py={2}
+ px={2}
+ mx={2}
flexDirection="row"
alignItems="center"
sx={{
@@ -29,7 +30,7 @@ const Button = props => {
onClick={props.onClick}
>
{props.Icon && <props.Icon />}
- <Text as="span" mx={1} flex="1 1 auto">
+ <Text as="span" mx={1} fontSize={14} flex="1 1 auto">
{props.content}
</Text>
</Flex>
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index 9d213710d..bc38ebb9b 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -179,7 +179,7 @@ export default class Editor extends React.Component {
borderWidth: 0,
":focus": { outline: "none" },
paddingTop: 0,
- paddingBottom: 3
+ paddingBottom: 0
}}
px={2}
onChange={e => {
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.js
index 96ffef84f..9f3f13c63 100644
--- a/apps/web/src/components/list-item/index.js
+++ b/apps/web/src/components/list-item/index.js
@@ -10,7 +10,7 @@ const ListItem = props => (
justifyContent="space-between"
py={1}
bg={props.pinned ? "shade" : "background"}
- px={3}
+ px={2}
sx={{
position: "relative",
marginTop: props.pinned ? 4 : 0,
@@ -37,7 +37,7 @@ const ListItem = props => (
marginTop: 5,
boxShadow: "2px 1px 3px #00000066"
}}
- mx={3}
+ mx={2}
alignItems="center"
justifyContent="center"
>
@@ -88,7 +88,7 @@ const ListItem = props => (
<Text
display={props.info ? "flex" : "none"}
variant="body"
- fontSize={12}
+ fontSize={10}
color="fontTertiary"
>
{props.info}
diff --git a/apps/web/src/components/notebook/index.js b/apps/web/src/components/notebook/index.js
index 634cf4adc..84a4aafeb 100644
--- a/apps/web/src/components/notebook/index.js
+++ b/apps/web/src/components/notebook/index.js
@@ -62,7 +62,7 @@ const Notebook = ({ item, index, onClick, onTopicClick }) => {
}}
key={topic.id + topic.title}
bg="primary"
- px={1}
+ px={2}
py={1}
sx={{
marginRight: 1,
diff --git a/apps/web/src/components/properties/index.js b/apps/web/src/components/properties/index.js
index d6bf114e1..e58f0e6e5 100644
--- a/apps/web/src/components/properties/index.js
+++ b/apps/web/src/components/properties/index.js
@@ -38,7 +38,7 @@ const Properties = props => {
flexDirection="column"
bg="background"
px={3}
- py={3}
+ py={0}
>
<Text
variant="title"
diff --git a/apps/web/src/components/search/index.js b/apps/web/src/components/search/index.js
index 0d8bf5f0b..8bae9591b 100644
--- a/apps/web/src/components/search/index.js
+++ b/apps/web/src/components/search/index.js
@@ -5,7 +5,7 @@ import * as Icon from "react-feather";
import "./search.css";
const Search = props => (
<Flex
- px={3}
+ px={2}
flexDirection="row"
justifyContent="center"
alignItems="center"
@@ -19,7 +19,6 @@ const Search = props => (
name="search"
placeholder={props.placeholder}
onChange={props.onChange}
- my={2}
/>
<Box
id="searchIcon"
diff --git a/apps/web/src/navigation/index.js b/apps/web/src/navigation/index.js
index 64038a0dd..3e81f4656 100644
--- a/apps/web/src/navigation/index.js
+++ b/apps/web/src/navigation/index.js
@@ -77,7 +77,7 @@ export default class Navigator {
const NavigationContainer = props => {
return (
<ThemeProvider>
- <Flex flexDirection="column" px={3}>
+ <Flex flexDirection="column" px={2}>
<Flex alignItems="center">
{props.canGoBack && (
<Box
diff --git a/apps/web/src/utils/theme.js b/apps/web/src/utils/theme.js
index b0404e76c..529d0bc19 100644
--- a/apps/web/src/utils/theme.js
+++ b/apps/web/src/utils/theme.js
@@ -48,13 +48,13 @@ const theme = (colors, shadows) => ({
colors: colors,
space: [0, 5, 10, 12, 15],
fontSizes: {
- heading: 32,
- input: 16,
- title: 18,
- subtitle: 18,
- body: 14,
- menu: 14,
- subBody: 12
+ heading: 26,
+ input: 14,
+ title: 16,
+ subtitle: 16,
+ body: 12,
+ menu: 12,
+ subBody: 10
},
fontWeights: {
body: 400,
diff --git a/apps/web/src/views/Home.js b/apps/web/src/views/Home.js
index ef706f82e..3bea1eb0d 100644
--- a/apps/web/src/views/Home.js
+++ b/apps/web/src/views/Home.js
@@ -54,10 +54,10 @@ function Home() {
groupCounts={notes.groupCounts}
group={groupIndex =>
notes.groups[groupIndex].title === "Pinned" ? (
- <Box px={3} bg="background" py={1} />
+ <Box px={2} bg="background" py={1} />
) : (
- <Box px={3} bg="background">
- <Text variant="heading" color="primary" fontSize={15}>
+ <Box px={2} bg="background">
+ <Text variant="heading" color="primary" fontSize={13}>
{notes.groups[groupIndex].title}
</Text>
</Box>