Skip to content

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

ui: minor improvements all around

thecodrr66cad8622e3b
diff --git a/apps/web/src/components/button/index.js b/apps/web/src/components/button/index.js
index 3489e3f44..bba4e40d3 100644
--- a/apps/web/src/components/button/index.js
+++ b/apps/web/src/components/button/index.js
@@ -9,8 +9,8 @@ const Button = props => {
<Flex
bg="primary"
width={props.width}
- py={2}
- px={2}
+ py={3}
+ px={3}
mx={2}
flexDirection="row"
alignItems="center"
@@ -30,7 +30,7 @@ const Button = props => {
onClick={props.onClick}
>
{props.Icon && <props.Icon />}
- <Text as="span" mx={1} fontSize={14} flex="1 1 auto">
+ <Text as="span" mx={1} fontSize={"body"} flex="1 1 auto">
{props.content}
</Text>
</Flex>
diff --git a/apps/web/src/components/editor/editor.css b/apps/web/src/components/editor/editor.css
index 39993201c..fb990667b 100644
--- a/apps/web/src/components/editor/editor.css
+++ b/apps/web/src/components/editor/editor.css
@@ -33,6 +33,7 @@
border-bottom: 1px solid var(--border) !important;
border-top: 1px solid var(--border) !important;
padding: 5px !important;
+ padding-bottom: 10px !important;
}
/*Color Overrides*/
diff --git a/apps/web/src/components/editor/titlebox.js b/apps/web/src/components/editor/titlebox.js
index 25c2b14e6..27c3751cb 100644
--- a/apps/web/src/components/editor/titlebox.js
+++ b/apps/web/src/components/editor/titlebox.js
@@ -27,10 +27,9 @@ export default class TitleBox extends React.Component {
display={["none", "flex", "flex"]}
sx={{
borderWidth: 0,
- ":focus": { outline: "none" },
- paddingTop: 1,
- paddingBottom: 1
+ ":focus": { outline: "none" }
}}
+ py={2}
px={2}
value={title}
onChange={e => {
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.js
index 5b9f42fe5..f009fb0b1 100644
--- a/apps/web/src/components/list-item/index.js
+++ b/apps/web/src/components/list-item/index.js
@@ -27,7 +27,7 @@ const ListItem = props => {
ref={parentRef}
alignItems="center"
justifyContent="space-between"
- py={1}
+ py={2}
bg={props.pinned || isSelected ? "shade" : "background"}
px={2}
sx={{
@@ -51,9 +51,9 @@ const ListItem = props => {
width: 30,
height: 30,
position: "absolute",
- top: -15,
+ top: 10,
left: 0,
- marginTop: 5,
+ marginTop: 0,
boxShadow: "2px 1px 3px #00000066"
}}
mx={2}
@@ -107,8 +107,9 @@ const ListItem = props => {
<Text
display={props.info ? "flex" : "none"}
variant="body"
- fontSize={10}
+ fontSize={11}
color="fontTertiary"
+ sx={{ marginTop: 2 }}
>
{props.info}
</Text>
@@ -129,7 +130,7 @@ const ListItem = props => {
/>
</Text>
</DropdownTrigger>
- <DropdownContent style={{ zIndex: 2, marginLeft: -110 }}>
+ <DropdownContent style={{ zIndex: 2, marginLeft: -130 }}>
<ActionsMenu {...props} />
</DropdownContent>
</Dropdown>
diff --git a/apps/web/src/components/menu/index.js b/apps/web/src/components/menu/index.js
index 4c468f7cc..fbb16a547 100644
--- a/apps/web/src/components/menu/index.js
+++ b/apps/web/src/components/menu/index.js
@@ -13,11 +13,21 @@ function Menu(props) {
position: "relative",
borderRadius: "default",
boxShadow: 2,
- width: 120,
+ width: 140,
...props.sx
}}
>
<Box width="100%">
+ <Text
+ fontFamily="body"
+ fontSize="body"
+ color="primary"
+ py={"8px"}
+ px={3}
+ sx={{ borderBottom: "1px solid", borderBottomColor: "border" }}
+ >
+ Properties
+ </Text>
{props.menuItems.map(item => (
<Flex
key={item.title}
@@ -33,8 +43,8 @@ function Menu(props) {
}}
flexDirection="row"
alignItems="center"
- py={1}
- px={2}
+ py={"8px"}
+ px={3}
sx={{
color: item.color || "fontPrimary",
":hover": {
@@ -42,7 +52,7 @@ function Menu(props) {
}
}}
>
- <Text as="span" mx={1} fontFamily="body" fontSize="menu">
+ <Text as="span" fontFamily="body" fontSize="menu">
{item.title}
</Text>
</Flex>
diff --git a/apps/web/src/components/search/index.js b/apps/web/src/components/search/index.js
index 8bae9591b..1c57a0296 100644
--- a/apps/web/src/components/search/index.js
+++ b/apps/web/src/components/search/index.js
@@ -10,7 +10,8 @@ const Search = props => (
justifyContent="center"
alignItems="center"
sx={{
- position: "relative"
+ position: "relative",
+ marginBottom: 0
}}
>
<Input
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index b2960c2b1..b655ed966 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -1,4 +1,4 @@
-@import url("https://fonts.googleapis.com/css?family=Noto+Sans+JP|Noto+Serif&display=swap");
+@import url("https://fonts.googleapis.com/css?family=Noto+Sans+JP:400|Noto+Serif:700&display=swap");
:root,
body,
diff --git a/apps/web/src/navigation/index.js b/apps/web/src/navigation/index.js
index 363eb89d6..8975df0f1 100644
--- a/apps/web/src/navigation/index.js
+++ b/apps/web/src/navigation/index.js
@@ -81,7 +81,7 @@ const NavigationContainer = props => {
<ThemeProvider>
<Flex flexDirection="column" px={2}>
{(props.route.title || props.route.params.title) && (
- <Flex alignItems="center" py={1}>
+ <Flex alignItems="center" py={2}>
{props.canGoBack && (
<Box
onClick={props.backAction}
diff --git a/apps/web/src/utils/theme.js b/apps/web/src/utils/theme.js
index d1d7b8bfc..220892649 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: 26,
+ heading: 28,
input: 14,
- title: 16,
+ title: 18,
subtitle: 16,
- body: 12,
- menu: 12,
- subBody: 10
+ body: 14,
+ menu: 14,
+ subBody: 11
},
fontWeights: {
body: 400,
@@ -209,7 +209,7 @@ const getTheme = (type, accent) =>
: theme(colorsLight(accent), shadowsLight);
var currentTheme = window.localStorage.getItem("theme") || "light";
-var currentAccent = window.localStorage.getItem("accent") || "#1790F3";
+var currentAccent = window.localStorage.getItem("accent") || "#0560ff";
export const ThemeProvider = props => {
const [, updateState] = React.useState();
diff --git a/apps/web/src/views/Home.js b/apps/web/src/views/Home.js
index 7cd85ffd9..1c8a00cc3 100644
--- a/apps/web/src/views/Home.js
+++ b/apps/web/src/views/Home.js
@@ -44,7 +44,12 @@ function Home() {
notes.groups[groupIndex].title === "Pinned" ? (
<Box px={2} bg="background" py={1} />
) : (
- <Box px={2} bg="background">
+ <Box
+ mx={2}
+ bg="background"
+ py={2}
+ sx={{ borderBottom: "1px solid", borderBottomColor: "primary" }}
+ >
<Text variant="heading" color="primary" fontSize="subtitle">
{notes.groups[groupIndex].title}
</Text>