Skip to content

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

feat: improve loaders heights

thecodrr21b1d073b525
diff --git a/apps/web/src/components/loaders/list-loader.tsx b/apps/web/src/components/loaders/list-loader.tsx
index 9efbad33f..76ccdf29b 100644
--- a/apps/web/src/components/loaders/list-loader.tsx
+++ b/apps/web/src/components/loaders/list-loader.tsx
@@ -8,12 +8,25 @@ const Lines = [1, 2, 3, 4].map(() => getRandomArbitrary(40, 90));
export const ListLoader = memo(function ListLoader() {
return (
<>
- <Flex alignItems="center" justifyContent={"center"} p={1}>
- <Skeleton width={40} height={40} circle />
- <Box sx={{ flex: 1, ml: 1, mt: 2 }}>
- <Skeleton height={12} />
- <Skeleton height={8} />
+ <Flex alignItems="center" justifyContent={"center"} sx={{ py: 1, mx: 1 }}>
+ <Box height={38}>
+ <Skeleton width={38} height={38} circle />
</Box>
+ <Flex
+ sx={{
+ flex: 1,
+ ml: 1,
+ flexDirection: "column",
+ justifyContent: "center",
+ }}
+ >
+ <Box height={14}>
+ <Skeleton inline height={14} />
+ </Box>
+ <Box height={10} sx={{ mt: 1 }}>
+ <Skeleton inline height={10} />
+ </Box>
+ </Flex>
</Flex>
{Lines.map((width) => (
<Box sx={{ py: 2, px: 1 }}>
diff --git a/apps/web/src/components/loaders/navigation-loader.tsx b/apps/web/src/components/loaders/navigation-loader.tsx
index df978f35e..64ec42739 100644
--- a/apps/web/src/components/loaders/navigation-loader.tsx
+++ b/apps/web/src/components/loaders/navigation-loader.tsx
@@ -10,6 +10,7 @@ export const NavigationLoader = memo(function NavigationLoader() {
flexDirection="column"
flex={1}
sx={{
+ height: "100%",
zIndex: 1,
position: "relative",
}}
diff --git a/apps/web/src/components/loaders/view-loader.tsx b/apps/web/src/components/loaders/view-loader.tsx
index 7afab5e0d..ebc88d9f6 100644
--- a/apps/web/src/components/loaders/view-loader.tsx
+++ b/apps/web/src/components/loaders/view-loader.tsx
@@ -7,7 +7,7 @@ import { ListLoader } from "./list-loader";
export const ViewLoader = memo(function ViewLoader() {
return (
<Box sx={{ m: 1 }}>
- <Flex sx={{ justifyContent: "space-between" }}>
+ <Flex sx={{ justifyContent: "space-between", py: 2 }}>
<Skeleton height={35} width={100} borderRadius={5} />
<Flex>
<Skeleton height={35} width={35} circle style={{ marginRight: 5 }} />