Skip to content

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

fix: ui inconsistencies in different list items

thecodrrcbb9cdf6f229
diff --git a/apps/web/src/components/tag/index.js b/apps/web/src/components/tag/index.js
index 40a28fd2a..fec14f86f 100644
--- a/apps/web/src/components/tag/index.js
+++ b/apps/web/src/components/tag/index.js
@@ -21,7 +21,11 @@ function Tag({ item, index }) {
selectable={false}
index={index}
title={<TagNode title={title} />}
- footer={<Text variant="subBody">{noteIds.length} notes</Text>}
+ footer={
+ <Text mt={1} variant="subBody">
+ {noteIds.length} notes
+ </Text>
+ }
menu={{ items: menuItems, extraData: { tag: item } }}
onClick={() => {
navigate(`/tags/${id}`);
diff --git a/apps/web/src/components/topic/index.js b/apps/web/src/components/topic/index.js
index 47bc3ad3b..8a5887070 100644
--- a/apps/web/src/components/topic/index.js
+++ b/apps/web/src/components/topic/index.js
@@ -14,7 +14,11 @@ function Topic({ item, index, onClick }) {
item={topic}
onClick={onClick}
title={topic.title}
- footer={<Text variant="subBody">{topic.totalNotes} Notes</Text>}
+ footer={
+ <Text mt={1} variant="subBody">
+ {topic.totalNotes} Notes
+ </Text>
+ }
index={index}
menu={{
items: topic.title === "General" ? generalTopicMenuItems : menuItems,
diff --git a/apps/web/src/components/trash-item/index.js b/apps/web/src/components/trash-item/index.js
index 6f94dfe86..ee10120db 100644
--- a/apps/web/src/components/trash-item/index.js
+++ b/apps/web/src/components/trash-item/index.js
@@ -18,10 +18,7 @@ function TrashItem({ item, index }) {
body={item.headline || item.description}
index={index}
footer={
- <Flex
- sx={{ fontSize: "subBody", color: "fontTertiary" }}
- variant="rowCenter"
- >
+ <Flex mt={1} sx={{ fontSize: "subBody", color: "fontTertiary" }}>
<TimeAgo datetime={item.dateDeleted || item.dateCreated} />
<Text as="span" mx={1}>
•