Skip to content

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

feat: do not use box shadow for border

thecodrrb70d2c96838f
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.js
index 90b468819..3fe3f5a67 100644
--- a/apps/web/src/components/list-item/index.js
+++ b/apps/web/src/components/list-item/index.js
@@ -92,18 +92,17 @@ function ListItem(props) {
...props.menu?.extraData,
});
}}
- p={2}
+ pr={2}
py={isCompact ? 1 : 2}
+ pl={1}
tabIndex={-1}
sx={{
height: "inherit",
cursor: "pointer",
position: "relative",
- boxShadow: isFocused
- ? `5px 2px 0px -2px var(--${primary}) inset`
- : "none",
+ borderLeft: "5px solid",
+ borderLeftColor: isFocused ? primary : "transparent",
transition: "box-shadow 200ms ease-in",
- // isMenuTarget
borderTop: isMenuTarget ? `1px solid var(--${primary})` : "none",
borderBottom: isMenuTarget ? `1px solid var(--${primary})` : "none",
":hover": {
diff --git a/apps/web/src/theme/variants/input.js b/apps/web/src/theme/variants/input.js
index 77d2b7ccb..92faa484e 100644
--- a/apps/web/src/theme/variants/input.js
+++ b/apps/web/src/theme/variants/input.js
@@ -13,19 +13,17 @@ class Default {
constructor() {
return {
borderRadius: "default",
- border: "none",
- // borderColor: "border",
- boxShadow: "0px 0px 0px 1px var(--border) inset",
+ border: "2px solid var(--border)",
fontFamily: "body",
fontWeight: "body",
fontSize: "input",
color: "text",
outline: "none",
":focus": {
- boxShadow: "0px 0px 0px 1.5px var(--primary) inset",
+ border: "2px solid var(--primary)",
},
":hover:not(:focus)": {
- boxShadow: "0px 0px 0px 1px var(--dimPrimary) inset",
+ border: "2px solid var(--dimPrimary)",
},
};
}
@@ -36,12 +34,12 @@ class Clean {
return {
variant: "forms.input",
outline: "none",
- boxShadow: "none",
+ border: "none",
":focus": {
- boxShadow: "none",
+ border: "none",
},
":hover:not(:focus)": {
- boxShadow: "none",
+ border: "none",
},
};
}
@@ -51,13 +49,13 @@ class Error {
constructor() {
return {
variant: "forms.input",
- boxShadow: "0px 0px 0px 1px var(--error) inset",
+ border: "2px solid var(--error)",
outline: "none",
":focus": {
- boxShadow: "0px 0px 0px 1.5px var(--error) inset",
+ border: "2px solid var(--error)",
},
":hover:not(:focus)": {
- boxShadow: "0px 0px 0px 1px var(--error) inset",
+ border: "2px solid var(--errorBg)",
},
};
}
diff --git a/apps/web/src/views/auth.tsx b/apps/web/src/views/auth.tsx
index d041f67e2..024a5a404 100644
--- a/apps/web/src/views/auth.tsx
+++ b/apps/web/src/views/auth.tsx
@@ -754,7 +754,7 @@ export function AuthForm<T extends AuthRoutes>(props: AuthFormProps<T>) {
alignSelf="center"
justifyContent={"center"}
alignItems="center"
- width={["95%", 420]}
+ width={["95%", "45%"]}
flex={1}
onSubmit={async (e) => {
e.preventDefault();